nvim: add nix.vim ftplugin
Anirudh Oppiliappan x@icyphox.sh
Thu, 24 Mar 2022 17:52:39 +0530
2 files changed,
7 insertions(+),
1 deletions(-)
A
config/nvim/ftplugin/nix.vim
@@ -0,0 +1,6 @@
+augroup NixFmt + autocmd! + autocmd BufWritePost *.nix | silent! exec '!nixpkgs-fmt %' | silent! edit +augroup END + +setlocal ts=2 sts=2 sw=2 expandtab
M
config/nvim/lua/maps.lua
→
config/nvim/lua/maps.lua
@@ -45,7 +45,7 @@ '',
'<leader>e', string.format( ':call v:lua.fzy_edit("find -L . -type f %s | cut -c3-")<cr>', - fzy_ignore{'*.git/*', '*node_modules*', '*.pyc', '*migrations*'} + fzy_ignore{'*.git/*', '*node_modules*', '*.pyc', '*migrations*', '*result*'} ), { noremap=true, silent=true } )