nvim: update init.vim
Change Python linters and default colourscheme, fix (once and for all?) the bug with the placement of the config dir
This commit is contained in:
parent
0c9ec6221b
commit
65f9698291
|
@ -14,7 +14,7 @@ set smarttab
|
|||
|
||||
" Settings for linting with ALE (requires ALE plugin activated below)
|
||||
" Linters to use
|
||||
let g:ale_linters={'python': ['pylama']}
|
||||
let g:ale_linters={'python': ['pycodestyle', 'pylint']}
|
||||
" Only run linters that are referred to explicitly let g:ale_linters_explicit=1
|
||||
" When to lint
|
||||
let g:ale_lint_on_text_changed=1
|
||||
|
@ -46,11 +46,11 @@ let g:zig_fmt_autosave = 0
|
|||
" Plugin directory should be in XDG_CONFIG_HOME, or in ~/.config if that
|
||||
" variable is unset
|
||||
if $XDG_CONFIG_HOME ==# ""
|
||||
let b:config_prefix="~/.config"
|
||||
" let b:config_prefix="~/.config/"
|
||||
call plug#begin('~/.config/nvim/plugins')
|
||||
else
|
||||
let b:config_prefix=$XDG_CONFIG_HOME
|
||||
call plug#begin($XDG_CONFIG_HOME . 'nvim/plugins')
|
||||
endif
|
||||
call plug#begin($XDG_CONFIG_HOME . 'nvim/plugins/')
|
||||
|
||||
" Semantic understanding of languages
|
||||
" Linting and completion from ALE
|
||||
|
@ -100,6 +100,6 @@ else
|
|||
set termguicolors
|
||||
endif
|
||||
|
||||
set background=dark
|
||||
set background=light
|
||||
syntax on
|
||||
colorscheme srcery
|
||||
colorscheme scheakur
|
||||
|
|
Loading…
Reference in New Issue