aboutsummaryrefslogtreecommitdiffhomepage
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
parent537beca50c8bd0e513a18ca08c9d68b97d8fcbed (diff)
Update
-rw-r--r--alias10
-rw-r--r--vim/kickstarter.lua12
2 files changed, 22 insertions, 0 deletions
diff --git a/alias b/alias
index 2c14104..e7118cf 100644
--- a/alias
+++ b/alias
@@ -552,3 +552,13 @@ alias allo="$EDITOR $LOCAL_ALIAS && source $LOCAL_ALIAS"
552if [ -e $LOCAL_ALIAS ]; then 552if [ -e $LOCAL_ALIAS ]; then
553 source $LOCAL_ALIAS 553 source $LOCAL_ALIAS
554fi 554fi
555
556vvv() {
557 while true; do
558 vim -c 'norm '
559 if [ $? -ne 0 ]; then
560 break
561 fi
562 echo "restarting nvim...";
563 done
564}
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 })