From 1aca2302cbd0015496f5a272f49bc45f56ebb54d Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Tue, 23 Feb 2021 21:11:49 +0100 Subject: autoload files if changed when in buffer --- .config/nvim/general/settings.vim | 4 ++++ .config/nvim/init.vim | 1 - .config/nvim/vim-plug/plugins.vim | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) (limited to '.config/nvim') diff --git a/.config/nvim/general/settings.vim b/.config/nvim/general/settings.vim index 1f9ae7f..47066ef 100644 --- a/.config/nvim/general/settings.vim +++ b/.config/nvim/general/settings.vim @@ -39,5 +39,9 @@ au! BufWritePost $MYVIMRC source % " auto source when writing to init.vm al set laststatus=2 " To get galaxyline to display +" Autoload file if changed. +set autoread +au CursorHold * checktime + " You can't stop me cmap w!! w !sudo tee % diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 875b24f..dbf6f5a 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -39,4 +39,3 @@ source $HOME/.config/nvim/plug-config/vim-commentary.vim " Theme source $HOME/.config/nvim/themes/nord.vim - diff --git a/.config/nvim/vim-plug/plugins.vim b/.config/nvim/vim-plug/plugins.vim index 02f479f..31b5096 100644 --- a/.config/nvim/vim-plug/plugins.vim +++ b/.config/nvim/vim-plug/plugins.vim @@ -29,6 +29,7 @@ call plug#begin('~/.config/nvim/autoload/plugged') Plug 'dylanaraps/wal.vim' Plug 'richtan/pywal.vim' Plug 'arcticicestudio/nord-vim' + Plug 'gavinok/spaceway.vim' " Color hex codes Plug 'ap/vim-css-color' -- cgit v1.2.3-70-g09d2