From 3986bab2929ef1543b47c951ecc37a5ba013d3d1 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Mon, 20 Sep 2021 21:45:48 -0400 Subject: Remove a bunch of trailing whitespace and setup lua syntastic --- init.vim | 55 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 27 deletions(-) (limited to 'init.vim') 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 :NERDTreeToggle -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 -- cgit v1.2.3