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:
Gender Demon 2021-12-22 18:03:59 +00:00
parent 0c9ec6221b
commit 65f9698291
1 changed files with 6 additions and 6 deletions

View File

@ -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