diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-05-10 01:35:30 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-05-10 01:35:30 +0800 |
commit | 958b6c0fad52242a1af3c8fa14c622bddc415a02 (patch) | |
tree | 88a1696250924ebb8e2a2253d783154f7797a272 | |
parent | 1ec2aa6a2526a5ef3d6f0c119e06308920d98f88 (diff) |
Update
-rw-r--r-- | nvim.lua | 29 |
1 files changed, 14 insertions, 15 deletions
@@ -80,6 +80,7 @@ require('lazy').setup({ | |||
80 | -- From vim plugin | 80 | -- From vim plugin |
81 | 'junegunn/goyo.vim', | 81 | 'junegunn/goyo.vim', |
82 | 'itchyny/lightline.vim', | 82 | 'itchyny/lightline.vim', |
83 | 'preservim/nerdtree', | ||
83 | 84 | ||
84 | 85 | ||
85 | -- NOTE: This is where your plugins related to LSP can be installed. | 86 | -- NOTE: This is where your plugins related to LSP can be installed. |
@@ -188,18 +189,19 @@ require('lazy').setup({ | |||
188 | }, | 189 | }, |
189 | 190 | ||
190 | -- "gc" to comment visual regions/lines | 191 | -- "gc" to comment visual regions/lines |
191 | { 'numToStr/Comment.nvim', opts = {} }, | 192 | --{ 'numToStr/Comment.nvim', opts = {} }, |
192 | -- Another config | 193 | -- Another config |
193 | -- { | 194 | { |
194 | -- 'numToStr/Comment.nvim', | 195 | 'numToStr/Comment.nvim', |
195 | -- opts = { | 196 | opts = { |
196 | -- opleader = { | 197 | opleader = { |
197 | -- ---Line-comment keymap | 198 | ---Line-comment keymap |
198 | -- line = '<C-_>', | 199 | line = 'gc', |
199 | -- ---Block-comment keymap | 200 | ---Block-comment keymap |
200 | -- block = 'gb', | 201 | block = 'gb', |
201 | -- }, | 202 | }, |
202 | -- }, | 203 | } |
204 | }, | ||
203 | 205 | ||
204 | 206 | ||
205 | -- Fuzzy Finder (files, lsp, etc) | 207 | -- Fuzzy Finder (files, lsp, etc) |
@@ -232,10 +234,6 @@ require('lazy').setup({ | |||
232 | build = ':TSUpdate', | 234 | build = ':TSUpdate', |
233 | }, | 235 | }, |
234 | 236 | ||
235 | { | ||
236 | 'preservim/nerdtree' | ||
237 | }, | ||
238 | |||
239 | -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart | 237 | -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart |
240 | -- These are some example plugins that I've included in the kickstart repository. | 238 | -- These are some example plugins that I've included in the kickstart repository. |
241 | -- Uncomment any of the lines below to enable them. | 239 | -- Uncomment any of the lines below to enable them. |
@@ -324,6 +322,7 @@ vim.api.nvim_set_var('NERDTreeWinSize', 35) | |||
324 | vim.cmd("map <C-n> :NERDTreeToggle<cr>") | 322 | vim.cmd("map <C-n> :NERDTreeToggle<cr>") |
325 | vim.cmd("map <leader>nb :NERDTreeFromBookmark<Space>") | 323 | vim.cmd("map <leader>nb :NERDTreeFromBookmark<Space>") |
326 | vim.cmd("map <leader>nf :NERDTreeFind<cr>") | 324 | vim.cmd("map <leader>nf :NERDTreeFind<cr>") |
325 | -- vim.cmd("autocmd BufWinEnter * if &buftype != 'quickfix' && getcmdwintype() == '' | silent NERDTreeMirror | endif") | ||
327 | 326 | ||
328 | -- [[ Highlight on yank ]] | 327 | -- [[ Highlight on yank ]] |
329 | -- See `:help vim.highlight.on_yank()` | 328 | -- See `:help vim.highlight.on_yank()` |