diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2023-06-03 19:42:23 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2023-06-03 19:42:23 -0600 |
commit | 510d4a42fed6647b6db3522c87e59b2f2843a670 (patch) | |
tree | 75bd3c80febc4f5c0f6815e58dd3286ef42f130a | |
parent | ad9bdf2f20ce1357c788a749117a3a5d2d3a3c01 (diff) |
minor tweaks
-rw-r--r-- | init.lua | 8 | ||||
-rw-r--r-- | lua/plugins/neo-tree.lua | 4 |
2 files changed, 1 insertions, 11 deletions
@@ -20,9 +20,6 @@ vim.opt.rtp:prepend(lazypath) require('lazy').setup('plugins', {}) -- [[ Setting options ]] --- See `:help vim.o` --- NOTE: You can change these options as you wish! - -- Set highlight on search vim.o.hlsearch = false @@ -33,8 +30,6 @@ vim.wo.number = true vim.o.mouse = 'a' -- Sync clipboard between OS and Neovim. --- Remove this option if you want your OS clipboard to remain independent. --- See `:help 'clipboard'` vim.o.clipboard = 'unnamedplus' -- Enable break indent @@ -64,7 +59,6 @@ vim.o.termguicolors = true -- [[ Basic Keymaps ]] -- Keymaps for better default experience --- See `:help vim.keymap.set()` vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true }) -- Remap for dealing with word wrap @@ -72,7 +66,6 @@ vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = tr vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) -- [[ Highlight on yank ]] --- See `:help vim.highlight.on_yank()` local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) vim.api.nvim_create_autocmd('TextYankPost', { callback = function() @@ -83,7 +76,6 @@ vim.api.nvim_create_autocmd('TextYankPost', { }) -- [[ Configure Treesitter ]] --- See `:help nvim-treesitter` require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' }, diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua index 64b0549..32bc11d 100644 --- a/lua/plugins/neo-tree.lua +++ b/lua/plugins/neo-tree.lua @@ -1,7 +1,5 @@ return { 'nvim-neo-tree/neo-tree.nvim', - cmd = 'Neotree', - version = '*', dependencies = { 'nvim-lua/plenary.nvim', 'MunifTanjim/nui.nvim', @@ -13,7 +11,7 @@ return { hijack_netrw_behavior = 'open_current', }, }, - -- keys is used for Lazy-load + -- lazy load on <leader>nt keys = { { '<leader>nt', '<CMD>Neotree toggle<CR>', desc = 'Toggle [N]eo[t]ree' }, }, |