Add vim-fluid
This commit is contained in:
parent
2501db5c5d
commit
28b6f5acf3
3 changed files with 21 additions and 0 deletions
|
|
@ -29,4 +29,7 @@ in
|
||||||
circadian_lighting = callPackage ./home-assistant-custom-components/circadian_lighting.nix { };
|
circadian_lighting = callPackage ./home-assistant-custom-components/circadian_lighting.nix { };
|
||||||
guntamatic = callPackage ./home-assistant-custom-components/guntamatic.nix { };
|
guntamatic = callPackage ./home-assistant-custom-components/guntamatic.nix { };
|
||||||
};
|
};
|
||||||
|
vimPlugins = prev.vimPlugins // {
|
||||||
|
vim-fluid = callPackage ./vim-fluid { inherit (prev.vimUtils) buildVimPlugin; };
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12
pkgs/vim-fluid/default.nix
Normal file
12
pkgs/vim-fluid/default.nix
Normal 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";
|
||||||
|
}
|
||||||
|
|
@ -101,6 +101,12 @@ in
|
||||||
lua require'nvim-treesitter.configs'.setup { highlight = { enable = true, }, }
|
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-gitgutter
|
||||||
vim-indent-guides
|
vim-indent-guides
|
||||||
vim-nix
|
vim-nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue