Add coc-settings.json; better nvim and sway

This commit is contained in:
Xamora 2024-01-30 14:29:33 +01:00
parent ab0645485c
commit 3c8bca139e
4 changed files with 10 additions and 3 deletions

6
coc-settings.json Normal file
View file

@ -0,0 +1,6 @@
{
"clangd.arguments": [
"--header-insertion=never"
]
}

View file

@ -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()

View file

@ -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

View file

@ -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/*