From 510d4a42fed6647b6db3522c87e59b2f2843a670 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 3 Jun 2023 19:42:23 -0600 Subject: minor tweaks --- init.lua | 8 -------- lua/plugins/neo-tree.lua | 4 +--- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/init.lua b/init.lua index 9bc1bbf..4a32cbf 100644 --- a/init.lua +++ b/init.lua @@ -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' }, '', '', { 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 nt keys = { { 'nt', 'Neotree toggle', desc = 'Toggle [N]eo[t]ree' }, }, -- cgit v1.2.3-70-g09d2