nix/nvim: configure a line limiter for each lang
This commit is contained in:
parent
c10b255e1e
commit
0fd5f7ec0f
1 changed files with 11 additions and 3 deletions
|
@ -53,14 +53,22 @@ set clipboard=unnamedplus " Copy/Past to/from clipboard
|
||||||
set cursorline " Highlight line cursor is currently on
|
set cursorline " Highlight line cursor is currently on
|
||||||
set completeopt+=noinsert " Select the first item of popup menu automatically without inserting it
|
set completeopt+=noinsert " Select the first item of popup menu automatically without inserting it
|
||||||
|
|
||||||
" Vertical lines
|
|
||||||
set colorcolumn=81,101,121
|
|
||||||
|
|
||||||
" Search
|
" Search
|
||||||
set incsearch " Incremental search.
|
set incsearch " Incremental search.
|
||||||
set ignorecase " Case insensitive.
|
set ignorecase " Case insensitive.
|
||||||
set smartcase " Case insensitive if no uppercase letter in pattern, case sensitive otherwise
|
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
|
" Spell check for markdown files
|
||||||
au BufNewFile,BufRead *.md set spell
|
au BufNewFile,BufRead *.md set spell
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue