diff options
-rw-r--r-- | alias | 10 | ||||
-rw-r--r-- | vim/kickstarter.lua | 12 |
2 files changed, 22 insertions, 0 deletions
@@ -552,3 +552,13 @@ alias allo="$EDITOR $LOCAL_ALIAS && source $LOCAL_ALIAS" | |||
552 | if [ -e $LOCAL_ALIAS ]; then | 552 | if [ -e $LOCAL_ALIAS ]; then |
553 | source $LOCAL_ALIAS | 553 | source $LOCAL_ALIAS |
554 | fi | 554 | fi |
555 | |||
556 | vvv() { | ||
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>") | |||
372 | vim.o.autochdir = 1 | 380 | vim.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 ] | ||
384 | vim.keymap.set('n', 't', ':HopWord<CR>') | ||
385 | vim.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()` |
377 | local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) | 389 | local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) |