aboutsummaryrefslogtreecommitdiff
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
parent2b077497d84747c91ac96318bbb17ac9efe3ba6d (diff)
downloadvimrice-daf9816886112d9667fc0bc3696387e4eede5315.tar.gz
vimrice-daf9816886112d9667fc0bc3696387e4eede5315.zip
Move filetype-specific preferences to main config
-rw-r--r--dotfiles/.config/nvim/init.vim12
-rw-r--r--dotfiles/.local/share/nvim/site/after/ftplugin/go.vim1
-rw-r--r--dotfiles/.local/share/nvim/site/after/ftplugin/mail.vim3
-rw-r--r--dotfiles/.local/share/nvim/site/after/ftplugin/markdown.vim3
-rw-r--r--dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim7
-rw-r--r--dotfiles/.local/share/nvim/site/after/ftplugin/tex.vim3
-rw-r--r--dotfiles/.local/share/nvim/site/after/ftplugin/text.vim3
7 files changed, 12 insertions, 20 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>"
diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/go.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/go.vim
deleted file mode 100644
index deca82d..0000000
--- a/dotfiles/.local/share/nvim/site/after/ftplugin/go.vim
+++ /dev/null
@@ -1 +0,0 @@
-setlocal tw=80
diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/mail.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/mail.vim
deleted file mode 100644
index 2bc09e9..0000000
--- a/dotfiles/.local/share/nvim/site/after/ftplugin/mail.vim
+++ /dev/null
@@ -1,3 +0,0 @@
-setlocal tw=72
-setlocal spell spelllang=en_us,es,ru
-let b:SuperTabContextDefaultCompletionType = "<c-p>"
diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/markdown.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/markdown.vim
deleted file mode 100644
index d248326..0000000
--- a/dotfiles/.local/share/nvim/site/after/ftplugin/markdown.vim
+++ /dev/null
@@ -1,3 +0,0 @@
-setlocal tw=80
-setlocal spell spelllang=en_us,es,ru
-let b:SuperTabContextDefaultCompletionType = "<c-p>"
diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim
deleted file mode 100644
index 947bdca..0000000
--- a/dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim
+++ /dev/null
@@ -1,7 +0,0 @@
-setlocal noexpandtab
-setlocal copyindent
-setlocal preserveindent
-setlocal softtabstop=0
-setlocal tabstop=4
-setlocal shiftwidth=4
-setlocal tw=80
diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/tex.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/tex.vim
deleted file mode 100644
index d248326..0000000
--- a/dotfiles/.local/share/nvim/site/after/ftplugin/tex.vim
+++ /dev/null
@@ -1,3 +0,0 @@
-setlocal tw=80
-setlocal spell spelllang=en_us,es,ru
-let b:SuperTabContextDefaultCompletionType = "<c-p>"
diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/text.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/text.vim
deleted file mode 100644
index d248326..0000000
--- a/dotfiles/.local/share/nvim/site/after/ftplugin/text.vim
+++ /dev/null
@@ -1,3 +0,0 @@
-setlocal tw=80
-setlocal spell spelllang=en_us,es,ru
-let b:SuperTabContextDefaultCompletionType = "<c-p>"