From 3c8bca139e747de47282e9cb513602a8353d2a54 Mon Sep 17 00:00:00 2001 From: Xamora Date: Tue, 30 Jan 2024 14:29:33 +0100 Subject: [PATCH] Add coc-settings.json; better nvim and sway --- coc-settings.json | 6 ++++++ init.vim | 4 ++-- install.sh | 1 + sway-config | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 coc-settings.json diff --git a/coc-settings.json b/coc-settings.json new file mode 100644 index 0000000..8223494 --- /dev/null +++ b/coc-settings.json @@ -0,0 +1,6 @@ +{ + "clangd.arguments": [ + "--header-insertion=never" + ] +} + diff --git a/init.vim b/init.vim index 037b233..ab4d674 100644 --- a/init.vim +++ b/init.vim @@ -26,7 +26,7 @@ Plug 'https://github.com/tpope/vim-commentary' Plug 'https://github.com/lifepillar/pgsql.vim' " PSQL Pluging needs :SQLSetType pgsql.vim Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme -Plug 'https://github.com/neoclide/coc.nvim' " Auto Completion +Plug 'neoclide/coc.nvim', {'branch': 'release'} " Auto Completion Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal Plug 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors @@ -39,7 +39,7 @@ call plug#end() autocmd bufenter * if (winnr("$") == 2 && IsNerdTreeEnabled() && g:terminal_id != -1) | qa | endif " If there is only NerdTree - autocmd bufenter * if (winnr("$") == 1 && IsNerdTreeEnabled()) | q | endif + autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif " Terminal function! ToggleTerminal() diff --git a/install.sh b/install.sh index ad943b8..acf78a9 100644 --- a/install.sh +++ b/install.sh @@ -7,3 +7,4 @@ cp -v bashrc ~/.bashrc cp -v ssh-config ~/.ssh/config cp -v init.vim ~/.config/nvim/init.vim cp -v foot.ini ~/.config/foot/foot.ini +cp -v coc-settings.json ~/.config/nvim/coc-settings.json diff --git a/sway-config b/sway-config index a54e0b8..2d303ea 100644 --- a/sway-config +++ b/sway-config @@ -233,7 +233,7 @@ bar { } #Screenshots -bindsym $mod+i exec grim -g "$(slurp)" ~/screenshots/"$(date +%Y-%m-%d_%H-%m-%s).png" +bindsym $mod+i exec grim -g "$(slurp)" ~/image/screenshots/"$(date +%Y-%m-%d_%H-%m-%s).png" bindsym $mod+Shift+i exec grim -g "$(slurp)" - | wl-copy include /etc/sway/config.d/*