From 35d907dde6cbcb30445c306bc61e22b8ad091a06 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sun, 9 May 2021 14:21:22 +0200 Subject: [PATCH] Feat: import Combava config --- files/dotfiles/nvim/coc-settings.json | 11 +++++++++++ files/dotfiles/nvim/general/mappings.vim | 2 ++ files/dotfiles/nvim/general/settings.vim | 2 +- files/dotfiles/nvim/plug-config/vimtex.vim | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 files/dotfiles/nvim/coc-settings.json diff --git a/files/dotfiles/nvim/coc-settings.json b/files/dotfiles/nvim/coc-settings.json new file mode 100644 index 0000000..4202505 --- /dev/null +++ b/files/dotfiles/nvim/coc-settings.json @@ -0,0 +1,11 @@ +{ + "coc.preferences.formatOnSaveFiletypes": [ + "rst", + "javascript", + "python", + "json", + "yaml" + ], + "python.jediEnabled": false, + "python.formatting.provider": "black" +} diff --git a/files/dotfiles/nvim/general/mappings.vim b/files/dotfiles/nvim/general/mappings.vim index 2dd42de..c760fb1 100644 --- a/files/dotfiles/nvim/general/mappings.vim +++ b/files/dotfiles/nvim/general/mappings.vim @@ -8,3 +8,5 @@ vmap < >gv +" Automatically spell check last error in insert mode +inoremap u[s1z=`]au diff --git a/files/dotfiles/nvim/general/settings.vim b/files/dotfiles/nvim/general/settings.vim index f18fe46..256036a 100644 --- a/files/dotfiles/nvim/general/settings.vim +++ b/files/dotfiles/nvim/general/settings.vim @@ -49,7 +49,7 @@ set smartcase " Override ignorecase if search patern c set wildmenu " Enable wildmenu set spell " Enable spell checking -set spelllang=fr +set spelllang=fr,en "set autochdir " Your working directory will always be the same as your working directory diff --git a/files/dotfiles/nvim/plug-config/vimtex.vim b/files/dotfiles/nvim/plug-config/vimtex.vim index eabf8fe..210236f 100644 --- a/files/dotfiles/nvim/plug-config/vimtex.vim +++ b/files/dotfiles/nvim/plug-config/vimtex.vim @@ -1,6 +1,7 @@ let maplocalleader = "\" let g:tex_conceal = "" +set conceallevel=0 let g:vimtex_compiler_latexmk = { \ 'backend' : 'nvim',