feat(neovim): install YAML related plugins
This commit is contained in:
parent
cac5b8a130
commit
c2dc77e360
1 changed files with 20 additions and 0 deletions
|
@ -10,6 +10,16 @@ let
|
|||
url = "http://ftp.vim.org/vim/runtime/spell/fr.utf-8.sug";
|
||||
sha256 = "0294bc32b42c90bbb286a89e23ca3773b7ef50eff1ab523b1513d6a25c6b3f58";
|
||||
};
|
||||
fromGitHub = rev: ref: repo:
|
||||
pkgs.vimUtils.buildVimPlugin {
|
||||
pname = "${pkgs.lib.strings.sanitizeDerivationName repo}";
|
||||
version = ref;
|
||||
src = builtins.fetchGit {
|
||||
url = "https://github.com/${repo}.git";
|
||||
ref = ref;
|
||||
rev = rev;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
options.modules.cli.neovim = {
|
||||
|
@ -44,6 +54,7 @@ in
|
|||
# Formatters
|
||||
nixfmt-rfc-style
|
||||
shfmt
|
||||
yamlfmt
|
||||
];
|
||||
extraLuaConfig = (builtins.readFile ./files/options.lua);
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
|
@ -181,6 +192,15 @@ in
|
|||
type = "lua";
|
||||
config = ( builtins.readFile ./files/whichkey.lua );
|
||||
}
|
||||
# yaml companion
|
||||
{
|
||||
plugin = ( fromGitHub
|
||||
"131b0d67bd2e0f1a02e0daf2f3460482221ce3c0"
|
||||
"main"
|
||||
"someone-stole-my-name/yaml-companion.nvim"
|
||||
);
|
||||
type = "lua";
|
||||
}
|
||||
vim-helm
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue