users/editor: add extra ftdetect

This commit is contained in:
Dmitriy Pleshevskiy 2023-01-08 23:21:06 +03:00
parent 5faf8647b0
commit 09e175734e
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -7,7 +7,14 @@ let
enableDevIcons = true; enableDevIcons = true;
enableTabby = true; enableTabby = true;
enableOrgMode = true; enableOrgMode = true;
extraPlugins = [ pkgs.vimPlugins.d2-vim ]; extraConfig = ''
aug extra_ftdetect
au!
au BufNewFile,BufRead *.d2 setfiletype d2
au BufNewFile,BufRead *.ncl setfiletype nickel
au BufNewFile,BufRead *.psql setfiletype psql
aug END
'';
plugins = with pkgs.myneovim.nix2lua; { plugins = with pkgs.myneovim.nix2lua; {
nvimTree.settings = { nvimTree.settings = {
open_on_setup = true; open_on_setup = true;