home: vim: add 'nix' ftplugin

This commit is contained in:
Bruno BELANYI 2022-10-26 14:14:01 +02:00
parent e0b7103c8d
commit 3c3e56002f
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
" Create the `b:undo_ftplugin` variable if it doesn't exist
call ftplugined#check_undo_ft()
" Use a small indentation value on Nix files
setlocal shiftwidth=2
let b:undo_ftplugin.='|setlocal shiftwidth<'