From 690eb9c9eb87bcc58f64ce26d11f738e1d54e7cc Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 24 Sep 2023 17:23:27 +0200 Subject: vimrc update --- .config/nvim/init.vim | 46 ++++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 3e5eba1..dbd8099 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -18,15 +18,6 @@ set cino=N-s,E-s,l1,g-1 set linebreak " set wrap but don't wrap inside words set viminfo+='1000,n~/.local/nvim/viminfo set guifont=JetBrainsMono\ Nerd\ Font:h9:#e-subpixelantialias:#h-slight -let g:neovide_scroll_animation_length = 0.3 -let g:neovide_cursor_animation_length=0.13 -let g:neovide_cursor_vfx_opacity=50.0 -let g:neovide_cursor_trail_length=2.2 -let g:neovide_cursor_animation_length=0.04 -let g:neovide_padding_top=16 -let g:neovide_padding_left=16 -let g:neovide_padding_right=16 -let g:neovide_padding_bottom=16 set linespace=5 let g:sneak#label = 1 let g:which_key_map = {} @@ -35,7 +26,21 @@ let g:minimap_highlight='Visual' let g:python3_host_prog='/usr/bin/python3' let g:vimtex_quickfix_open_on_warning = 0 hi! link CocFloating SneakScope -autocmd BufNewFile,BufRead *.jdscn set syntax=json + +if exists("g:neovide") + nmap :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1 + nmap :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1 + nmap :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1 + nmap :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1 + nmap :lua vim.g.neovide_scale_factor = 1 + let g:neovide_scroll_animation_length = 0.2 + let g:neovide_cursor_animation_length = 0.06 + let g:neovide_cursor_trail_size = 0.0 + let g:neovide_padding_top=16 + let g:neovide_padding_left=16 + let g:neovide_padding_right=16 + let g:neovide_padding_bottom=16 +endif if ! filereadable(expand('~/.config/nvim/autoload/plug.vim')) echo "Downloading junegunn/vim-plug to manage plugins..." @@ -84,6 +89,8 @@ Plug 'cespare/vim-toml' Plug 'tikhomirov/vim-glsl' " Plug 'gabrielelana/vim-markdown' Plug 'vim-scripts/syntaxm4.vim' +Plug 'elkowar/yuck.vim' +Plug 'bhurlow/vim-parinfer' " 'vim=ide' Plug 'neoclide/coc.nvim', {'branch': 'release'} @@ -177,13 +184,13 @@ map y "+y let g:which_key_map.p = 'x11 paste' let g:which_key_map.y = 'x11 yank' -map w :w +map w :w let g:which_key_map.w = 'write' -map dv :VimtexView -map dc :VimtexCompile -map de :VimtexErrors -map dt :VimtexTocToggle +map dv :VimtexView +map dc :VimtexCompile +map de :VimtexErrors +map dt :VimtexTocToggle let g:which_key_map.d = { \ 'name': '+document', \ 'v': 'view', @@ -192,9 +199,9 @@ let g:which_key_map.d = { \ 't': 'table of contents' \ } -map ts :sp term://zshi -map tv :vsp term://zshi -map tt :tabnew term://zshi +map ts :sp term://zshi +map tv :vsp term://zshi +map tt :tabnew term://zshi let g:which_key_map.t = { \ 'name': '+term', \ 's': 'split', @@ -202,7 +209,7 @@ let g:which_key_map.t = { \ 't': 'tab' \ } -map .v :tabnew ~/.config/nvim/init.vim +map .v :tabnew ~/.config/nvim/init.vim let g:which_key_map['.'] = { \ 'name': '+config', \ 'v': 'vim', @@ -213,7 +220,6 @@ cnoreabbrev W w cnoreabbrev sudow w !sudo tee % " hexokinase - let g:Hexokinase_optInPatterns = [ \ 'full_hex', \ 'triple_hex', -- cgit v1.2.3