nix/nvim: configure a line limiter for each lang

This commit is contained in:
Dmitriy Pleshevskiy 2022-06-23 15:25:27 +03:00
parent c10b255e1e
commit 0fd5f7ec0f
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -53,14 +53,22 @@ set clipboard=unnamedplus " Copy/Past to/from clipboard
set cursorline " Highlight line cursor is currently on
set completeopt+=noinsert " Select the first item of popup menu automatically without inserting it
" Vertical lines
set colorcolumn=81,101,121
" Search
set incsearch " Incremental search.
set ignorecase " Case insensitive.
set smartcase " Case insensitive if no uppercase letter in pattern, case sensitive otherwise
" Set up a line limiter for each lang
au BufNewFile,BufRead *.nix set colorcolumn=101
au BufNewFile,BufRead *.vim set colorcolumn=101
au BufNewFile,BufRead *.ts,*.tsx set colorcolumn=101
au BufNewFile,BufRead *.js,*.jsx set colorcolumn=101
au BufNewFile,BufRead *.rs set colorcolumn=101
au BufNewFile,BufRead *.json set colorcolumn=81
au BufNewFile,BufRead *.yml,*.yaml set colorcolumn=81
au BufNewFile,BufRead *.md set colorcolumn=81
" TODO: add limiter for haskell
" Spell check for markdown files
au BufNewFile,BufRead *.md set spell