Add vim-fluid

This commit is contained in:
Jakob Lechner 2024-08-20 12:04:31 +02:00
parent 2501db5c5d
commit 28b6f5acf3
3 changed files with 21 additions and 0 deletions

View file

@ -29,4 +29,7 @@ in
circadian_lighting = callPackage ./home-assistant-custom-components/circadian_lighting.nix { };
guntamatic = callPackage ./home-assistant-custom-components/guntamatic.nix { };
};
vimPlugins = prev.vimPlugins // {
vim-fluid = callPackage ./vim-fluid { inherit (prev.vimUtils) buildVimPlugin; };
};
}

View file

@ -0,0 +1,12 @@
{ buildVimPlugin, fetchFromGitHub }:
buildVimPlugin {
pname = "vim-fluid";
version = "0.0.1";
src = fetchFromGitHub {
owner = "mipmip";
repo = "vim-fluid";
rev = "cedc4ad871941e8f7134d1d71f9434f1bc3d93d5";
sha256 = "sha256-LiS2Dqw1K1Fu5VfHQnxIBDxDzEarmSAUUavQcwHRDsQ=";
};
meta.homepage = "https://github.com/mipmip/vim-fluid";
}

View file

@ -101,6 +101,12 @@ in
lua require'nvim-treesitter.configs'.setup { highlight = { enable = true, }, }
'';
}
{
plugin = vim-fluid;
config = ''
au BufRead *.html if join(getline(1,3), "\n") =~ 'data-namespace-typo3-fluid="true"' | setlocal filetype=fluid | endif
'';
}
vim-gitgutter
vim-indent-guides
vim-nix