summaryrefslogtreecommitdiff
path: root/init.vim
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-09-20 21:45:48 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-09-20 21:45:48 -0400
commit3986bab2929ef1543b47c951ecc37a5ba013d3d1 (patch)
tree2e4bb8078ddb3fe4052f9a8c8fd38da877925634 /init.vim
parentcf46cde6d941a5d376ebb47cb50d4a25b656f2b5 (diff)
downloadnvim-config-3986bab2929ef1543b47c951ecc37a5ba013d3d1.tar.gz
nvim-config-3986bab2929ef1543b47c951ecc37a5ba013d3d1.tar.xz
Remove a bunch of trailing whitespace and setup lua syntastic
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim55
1 files changed, 28 insertions, 27 deletions
diff --git a/init.vim b/init.vim
index f91c7ad..fc7c615 100644
--- a/init.vim
+++ b/init.vim
@@ -46,9 +46,9 @@ filetype plugin on
set omnifunc=syntaxcomplete#Complete
" Stolen from the help page:
-"
+"
" One typical way to use the netrw tree display is to: >
-"
+"
" vim .
" (use i until a tree display shows)
" navigate to a file
@@ -106,32 +106,32 @@ call plug#end()
map <C-n> :NERDTreeToggle<CR>
-let g:ctrlp_follow_symlinks = 1
-let g:ctrlp_working_path_mode = 0
+let g:ctrlp_follow_symlinks = 1
+let g:ctrlp_working_path_mode = 0
-" Always show status line
-" set laststatus=2
+" Always show status line
+" set laststatus=2
-" Enable the list of buffers
-let g:airline#extensions#tabline#enabled = 1
-" Show just the filename
-let g:airline#extensions#tabline#fnamemod = ':t'
-if !exists('g:airline_symbols')
- let g:airline_symbols = {}
-endif
-let g:airline_symbols.space = "\ua0"
+" Enable the list of buffers
+let g:airline#extensions#tabline#enabled = 1
+" Show just the filename
+let g:airline#extensions#tabline#fnamemod = ':t'
+if !exists('g:airline_symbols')
+ let g:airline_symbols = {}
+endif
+let g:airline_symbols.space = "\ua0"
let g:airline_section_z = airline#section#create(['windowswap', '%3p%% ', 'linenr', ':%3v'])
-" Persistent undo
-set undofile
-set undodir=~/.nvimundo
-set undolevels=1000
-set undoreload=10000
-
-" lots of history, it's always nice to find old nasty command that happen
-" to be really useful
-set history=10000
+" Persistent undo
+set undofile
+set undodir=~/.nvimundo
+set undolevels=1000
+set undoreload=10000
+
+" lots of history, it's always nice to find old nasty command that happen
+" to be really useful
+set history=10000
" Useful on some terminals, not always supported in old tmux versions
@@ -140,21 +140,22 @@ set history=10000
let g:airline_theme="distinguished"
" let g:airline_theme="hybrid"
-colorscheme 256_noir
+" colorscheme 256_noir
" colorscheme distinguished
" colorscheme sane
set background=dark
-" let g:hybrid_transparent_background = 1
-" colorscheme hybrid_material
+let g:hybrid_transparent_background = 1
+colorscheme hybrid_material
-" For syntastic it's worth running
+" For syntastic it's worth running
" SyntasticInfo : to see what's available for the given open file
" SyntasticCheck yamllint : if you want to say manually run the `yamllint`
" checker
let g:syntastic_yaml_checkers = ['yamllint']
let g:syntastic_go_checkers = [ 'go', 'gofmt', 'golangci_lint' ]
+let g:syntastic_lua_checkers = [ 'luac', 'luacheck' ]
" This lets :lopen / :lwindow always be populated work
let g:syntastic_always_populate_loc_list = 1