diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2018-04-22 00:25:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 00:25:40 +0200 |
commit | 313b5fce7b8eea04029566c22891d8159b91df2c (patch) | |
tree | d29557c0a00ce09830d1e4a1e1eaf84b09fcc263 | |
parent | c6e575cd5b3d63ef6aeebd24fee691af7e1c54ce (diff) | |
parent | 16bfd5a2be51c0b42d0cb5691c41dd8f1913e15b (diff) | |
download | nixlib-313b5fce7b8eea04029566c22891d8159b91df2c.tar nixlib-313b5fce7b8eea04029566c22891d8159b91df2c.tar.gz nixlib-313b5fce7b8eea04029566c22891d8159b91df2c.tar.bz2 nixlib-313b5fce7b8eea04029566c22891d8159b91df2c.tar.lz nixlib-313b5fce7b8eea04029566c22891d8159b91df2c.tar.xz nixlib-313b5fce7b8eea04029566c22891d8159b91df2c.tar.zst nixlib-313b5fce7b8eea04029566c22891d8159b91df2c.zip |
Merge pull request #39260 from chreekat/idiomatic-vim-ft-plugin
vim: idiomatic nix filetype plugin
-rw-r--r-- | pkgs/applications/editors/vim/ft-nix-support.patch | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/editors/vim/ft-nix-support.patch b/pkgs/applications/editors/vim/ft-nix-support.patch index 416ec18cf2ca..5feb9c879517 100644 --- a/pkgs/applications/editors/vim/ft-nix-support.patch +++ b/pkgs/applications/editors/vim/ft-nix-support.patch @@ -85,5 +85,12 @@ new file mode 100644 --- /dev/null +++ b/runtime/ftplugin/nix.vim @@ -0,0 +1,2 @@ ++" Only do this when not done yet for this buffer ++if exists("b:did_ftplugin") ++ finish ++endif ++let b:did_ftplugin = 1 ++ +" coding conventions -+setlocal sw=2 ts=2 expandtab ++setlocal shiftwidth=2 expandtab softtabstop=2 ++let b:undo_ftplugin = "setlocal sw< et< sts<" |