aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/kickstarter.lua
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-05-12 14:06:53 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-05-12 14:06:53 +0800
commit25eb4fcde6dd4594ecd504cc8fcdfbdb1d68b081 (patch)
treebb0ddf257eff9f3716805a325cf516303dbab5d0 /vim/kickstarter.lua
parent537beca50c8bd0e513a18ca08c9d68b97d8fcbed (diff)
Update
Diffstat (limited to 'vim/kickstarter.lua')
-rw-r--r--vim/kickstarter.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/vim/kickstarter.lua b/vim/kickstarter.lua
index cdc919f..56e412b 100644
--- a/vim/kickstarter.lua
+++ b/vim/kickstarter.lua
@@ -128,6 +128,14 @@ require('lazy').setup({
128 'itchyny/lightline.vim', 128 'itchyny/lightline.vim',
129 'preservim/nerdtree', 129 'preservim/nerdtree',
130 130
131 -- hop.nvim
132 {
133 'smoka7/hop.nvim',
134 version = "*",
135 opts = {
136 keys = 'etovxqpdygfblzhckisuran'
137 }
138 },
131 139
132 -- NOTE: This is where your plugins related to LSP can be installed. 140 -- NOTE: This is where your plugins related to LSP can be installed.
133 -- The configuration is done below. Search for lspconfig to find it below. 141 -- The configuration is done below. Search for lspconfig to find it below.
@@ -372,6 +380,10 @@ vim.cmd("map <leader>nf :NERDTreeFind<cr>")
372vim.o.autochdir = 1 380vim.o.autochdir = 1
373-- vim.cmd("autocmd BufWinEnter * if &buftype != 'quickfix' && getcmdwintype() == '' | silent NERDTreeMirror | endif") 381-- vim.cmd("autocmd BufWinEnter * if &buftype != 'quickfix' && getcmdwintype() == '' | silent NERDTreeMirror | endif")
374 382
383-- [ Configure Hop ]
384vim.keymap.set('n', 't', ':HopWord<CR>')
385vim.keymap.set('n', 'T', ':HopChar<CR>')
386
375-- [[ Highlight on yank ]] 387-- [[ Highlight on yank ]]
376-- See `:help vim.highlight.on_yank()` 388-- See `:help vim.highlight.on_yank()`
377local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) 389local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })