From 65f96982914ec3010648a72c70b6030bafc764fc Mon Sep 17 00:00:00 2001 From: Callum Renwick Date: Wed, 22 Dec 2021 18:03:59 +0000 Subject: [PATCH] nvim: update init.vim Change Python linters and default colourscheme, fix (once and for all?) the bug with the placement of the config dir --- nvim/init.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 3271bfe..7a4b205 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -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