diff options
author | Yigit Sever | 2021-10-06 02:27:06 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-06 02:27:06 +0300 |
commit | a489f11c2befa6013f427daf2b36fde84a17a318 (patch) | |
tree | 045a4966a7c44d8e6d79099273b8d172776c7c6c /.config/nvim/init.vim | |
parent | a327905a56eb969232d89d4a73f1e692c24df7f3 (diff) | |
download | dotfiles-a489f11c2befa6013f427daf2b36fde84a17a318.tar.gz dotfiles-a489f11c2befa6013f427daf2b36fde84a17a318.tar.bz2 dotfiles-a489f11c2befa6013f427daf2b36fde84a17a318.zip |
nvim: higlighted yank
Diffstat (limited to '.config/nvim/init.vim')
-rwxr-xr-x | .config/nvim/init.vim | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index b6a8acf..ba546d6 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim | |||
@@ -30,6 +30,9 @@ Plug 'janko/vim-test' | |||
30 | Plug 'jpalardy/vim-slime' | 30 | Plug 'jpalardy/vim-slime' |
31 | " snippets to expand | 31 | " snippets to expand |
32 | Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' | 32 | Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' |
33 | " Highlight the yanked region | ||
34 | Plug 'machakann/vim-highlightedyank' | ||
35 | |||
33 | " auto pair plugin, people hate these | 36 | " auto pair plugin, people hate these |
34 | Plug 'tmsvg/pear-tree' | 37 | Plug 'tmsvg/pear-tree' |
35 | " language packs | 38 | " language packs |
@@ -180,14 +183,6 @@ autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/.local/bin/sen | |||
180 | 183 | ||
181 | " runs a script that cleans out tex build files whenever I close out of a .tex file. | 184 | " runs a script that cleans out tex build files whenever I close out of a .tex file. |
182 | autocmd VimLeave *.tex !texclear % | 185 | autocmd VimLeave *.tex !texclear % |
183 | |||
184 | " TODO: this will get supported on nvim 0.5.0 | ||
185 | " TODO: this too https://www.reddit.com/r/neovim/comments/gxcbui/in_built_lsp_is_amazing/ | ||
186 | " augroup highlight_yank | ||
187 | " autocmd! | ||
188 | " autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank("IncSearch", 1000) | ||
189 | " augroup END | ||
190 | |||
191 | "}}} | 186 | "}}} |
192 | 187 | ||
193 | " Functions {{{ | 188 | " Functions {{{ |