aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-09-29 11:59:56 +0300
committerYaroslav <contact@yaroslavps.com>2020-09-29 11:59:56 +0300
commit59503a30522fad9d87c878f3eb71a8c5e64d8562 (patch)
treee8ceb7e6f19cff8157432920093149ba28282008 /dotfiles
parente363f8d9f44ec6c7602c056d512b70b8eebd2d84 (diff)
downloadvimrice-59503a30522fad9d87c878f3eb71a8c5e64d8562.tar.gz
vimrice-59503a30522fad9d87c878f3eb71a8c5e64d8562.zip
Add textwidth column
Also, set textwidth to 80 for Rust files
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/nvim/init.vim1
-rw-r--r--dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim1
2 files changed, 2 insertions, 0 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index 014f862..cfbe8f6 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -41,6 +41,7 @@ call plug#end()
set number
set relativenumber
set scrolloff=5
+ set colorcolumn=+1
" Set screen title
let &titlestring = "vim - " . expand("%:t")
diff --git a/dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim b/dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim
index fdae69a..01d4271 100644
--- a/dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim
+++ b/dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim
@@ -1,3 +1,4 @@
setlocal shiftwidth=4
setlocal tabstop=4
setlocal fdm=syntax
+setlocal tw=80