mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-08-18 18:48:22 +02:00
neovim: Don't save folds by default
It may be better to open files normally and have the option to manually save/load views for predictability.
This commit is contained in:
@@ -54,13 +54,6 @@
|
|||||||
|
|
||||||
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
|
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
|
||||||
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
||||||
|
|
||||||
" Automatically save location/folds/etc. when re-opening files
|
|
||||||
augroup remember_folds
|
|
||||||
autocmd!
|
|
||||||
autocmd BufWinLeave * mkview
|
|
||||||
autocmd BufWinEnter * silent! loadview
|
|
||||||
augroup END
|
|
||||||
'';
|
'';
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user