From 59503a30522fad9d87c878f3eb71a8c5e64d8562 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 29 Sep 2020 11:59:56 +0300 Subject: Add textwidth column Also, set textwidth to 80 for Rust files --- dotfiles/.config/nvim/init.vim | 1 + dotfiles/.local/share/nvim/site/after/ftplugin/rust.vim | 1 + 2 files changed, 2 insertions(+) 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 -- cgit v1.2.3