aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/nvim
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-11-03 01:54:05 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-11-03 01:54:05 +0300
commitdaf9816886112d9667fc0bc3696387e4eede5315 (patch)
tree5448268cfb1068f92fb59832b9f0b491599083da /dotfiles/.config/nvim
parent2b077497d84747c91ac96318bbb17ac9efe3ba6d (diff)
downloadvimrice-daf9816886112d9667fc0bc3696387e4eede5315.tar.gz
vimrice-daf9816886112d9667fc0bc3696387e4eede5315.zip
Move filetype-specific preferences to main config
Diffstat (limited to 'dotfiles/.config/nvim')
-rw-r--r--dotfiles/.config/nvim/init.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index 08b01a4..b652ce3 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -222,3 +222,15 @@ call plug#end()
" Goyo
let g:goyo_width = 100
map <leader>g :Goyo<CR>
+
+" File format preferences
+ autocmd FileType rust setlocal noet ci pi sts=0 ts=4 sw=4 tw=80
+ autocmd FileType meson setlocal noet ci pi sts=0 ts=4 sw=4 tw=80
+ autocmd FileType tex setlocal spell spelllang=en_us,es,ru tw=80 |
+ \ let b:SuperTabContextDefaultCompletionType = "<c-p>"
+ autocmd FileType text setlocal spell spelllang=en_us,es,ru tw=80 |
+ \ let b:SuperTabContextDefaultCompletionType = "<c-p>"
+ autocmd FileType mail setlocal spell spelllang=en_us,es,ru tw=72 |
+ \ let b:SuperTabContextDefaultCompletionType = "<c-p>"
+ autocmd FileType markdown setlocal spell spelllang=en_us,es,ru tw=80 |
+ \ let b:SuperTabContextDefaultCompletionType = "<c-p>"