From 958b6c0fad52242a1af3c8fa14c622bddc415a02 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 10 May 2024 01:35:30 +0800 Subject: Update --- nvim.lua | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'nvim.lua') diff --git a/nvim.lua b/nvim.lua index 91dd462..ba2c201 100644 --- a/nvim.lua +++ b/nvim.lua @@ -80,6 +80,7 @@ require('lazy').setup({ -- From vim plugin 'junegunn/goyo.vim', 'itchyny/lightline.vim', + 'preservim/nerdtree', -- NOTE: This is where your plugins related to LSP can be installed. @@ -188,18 +189,19 @@ require('lazy').setup({ }, -- "gc" to comment visual regions/lines - { 'numToStr/Comment.nvim', opts = {} }, + --{ 'numToStr/Comment.nvim', opts = {} }, -- Another config - -- { - -- 'numToStr/Comment.nvim', - -- opts = { - -- opleader = { - -- ---Line-comment keymap - -- line = '', - -- ---Block-comment keymap - -- block = 'gb', - -- }, - -- }, + { + 'numToStr/Comment.nvim', + opts = { + opleader = { + ---Line-comment keymap + line = 'gc', + ---Block-comment keymap + block = 'gb', + }, + } + }, -- Fuzzy Finder (files, lsp, etc) @@ -232,10 +234,6 @@ require('lazy').setup({ build = ':TSUpdate', }, - { - 'preservim/nerdtree' - }, - -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- These are some example plugins that I've included in the kickstart repository. -- Uncomment any of the lines below to enable them. @@ -324,6 +322,7 @@ vim.api.nvim_set_var('NERDTreeWinSize', 35) vim.cmd("map :NERDTreeToggle") vim.cmd("map nb :NERDTreeFromBookmark") vim.cmd("map nf :NERDTreeFind") +-- vim.cmd("autocmd BufWinEnter * if &buftype != 'quickfix' && getcmdwintype() == '' | silent NERDTreeMirror | endif") -- [[ Highlight on yank ]] -- See `:help vim.highlight.on_yank()` -- cgit v1.2.3-70-g09d2