Merge pull request #39260 from chreekat/idiomatic-vim-ft-plugin

vim: idiomatic nix filetype plugin

authored by

Daiderd Jordan and committed by
GitHub
313b5fce c6e575cd

+8 -1
+8 -1
pkgs/applications/editors/vim/ft-nix-support.patch
··· 85 --- /dev/null 86 +++ b/runtime/ftplugin/nix.vim 87 @@ -0,0 +1,2 @@ 88 +" coding conventions 89 - +setlocal sw=2 ts=2 expandtab
··· 85 --- /dev/null 86 +++ b/runtime/ftplugin/nix.vim 87 @@ -0,0 +1,2 @@ 88 + +" Only do this when not done yet for this buffer 89 + +if exists("b:did_ftplugin") 90 + + finish 91 + +endif 92 + +let b:did_ftplugin = 1 93 + + 94 +" coding conventions 95 + +setlocal shiftwidth=2 expandtab softtabstop=2 96 + +let b:undo_ftplugin = "setlocal sw< et< sts<"