diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-03-16 21:35:01 +0100 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-03-16 21:35:01 +0100 |
commit | 11cabf4866dd3121608a5821f451b45cf3832c2e (patch) | |
tree | f8a7095da9c668963e80da5dfb5b3d20d5ce25dc /Common/nvim/lua/helper_functions.lua | |
parent | 93bf47d248570a27d6b3e1fce074d666d8a615a6 (diff) | |
download | dotfiles-11cabf4866dd3121608a5821f451b45cf3832c2e.tar.gz dotfiles-11cabf4866dd3121608a5821f451b45cf3832c2e.zip |
Make colorcolumn less obnoxious
Diffstat (limited to 'Common/nvim/lua/helper_functions.lua')
-rwxr-xr-x | Common/nvim/lua/helper_functions.lua | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/Common/nvim/lua/helper_functions.lua b/Common/nvim/lua/helper_functions.lua index 945473b..bf5eec3 100755 --- a/Common/nvim/lua/helper_functions.lua +++ b/Common/nvim/lua/helper_functions.lua @@ -159,52 +159,3 @@ vnoremap <leader><leader>s :'<,'>GitHistoryForLine<CR> ]] --- Close buffer without closing window ---[[ -vim.cmd [[ - function! <SID>BufcloseCloseIt() - let l:currentBufNum = bufnr("%") - let l:alternateBufNum = bufnr("#") - - if buflisted(l:alternateBufNum) - buffer # - else - bnext - endif - - if bufnr("%") == l:currentBufNum - new - endif - - if buflisted(l:currentBufNum) - execute("bdelete! ".l:currentBufNum) - endif - endfunction -]] ---]] - -vim.cmd [[ - function! CmdLine(str) - exe "menu Foo.Bar :" . a:str - emenu Foo.Bar - unmenu Foo - endfunction - - - function! VisualSelection(direction, extra_filter) range - let l:saved_reg = @" - execute "normal! vgvy" - - let l:pattern = escape(@", "\\/.*'$^~[]") - let l:pattern = substitute(l:pattern, "\n$", "", "") - - if a:direction == 'gv' - call CmdLine("Ack '" . l:pattern . "' " ) - elseif a:direction == 'replace' - call CmdLine("%s" . '/'. l:pattern . '/') - endif - - let @/ = l:pattern - let @" = l:saved_reg - endfunction -]] |