mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 01:38:40 +02:00
plugins/friendly-snippets: switch to mkVimPlugin
This commit is contained in:
parent
93208b9536
commit
7e4f8a2a56
2 changed files with 4 additions and 23 deletions
|
@ -70,7 +70,6 @@ KNOWN_PATHS: dict[
|
||||||
"plugins/by-name/coq-thirdparty/default.nix": (State.OLD, Kind.NEOVIM, False),
|
"plugins/by-name/coq-thirdparty/default.nix": (State.OLD, Kind.NEOVIM, False),
|
||||||
"plugins/by-name/dap/default.nix": (State.OLD, Kind.NEOVIM, False),
|
"plugins/by-name/dap/default.nix": (State.OLD, Kind.NEOVIM, False),
|
||||||
"plugins/by-name/floaterm/default.nix": (State.OLD, Kind.VIM, False),
|
"plugins/by-name/floaterm/default.nix": (State.OLD, Kind.VIM, False),
|
||||||
"plugins/by-name/friendly-snippets/default.nix": (State.OLD, Kind.VIM, False),
|
|
||||||
"plugins/by-name/gitgutter/default.nix": (State.OLD, Kind.VIM, False),
|
"plugins/by-name/gitgutter/default.nix": (State.OLD, Kind.VIM, False),
|
||||||
"plugins/by-name/gitmessenger/default.nix": (State.OLD, Kind.VIM, False),
|
"plugins/by-name/gitmessenger/default.nix": (State.OLD, Kind.VIM, False),
|
||||||
"plugins/by-name/intellitab/default.nix": (
|
"plugins/by-name/intellitab/default.nix": (
|
||||||
|
|
|
@ -1,31 +1,13 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
helpers,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
lib.nixvim.vim-plugin.mkVimPlugin {
|
||||||
let
|
name = "friendly-snippets";
|
||||||
cfg = config.plugins.friendly-snippets;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
meta.maintainers = [ maintainers.GaetanLepage ];
|
|
||||||
|
|
||||||
options.plugins.friendly-snippets = {
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
enable = mkEnableOption "friendly-snippets";
|
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "friendly-snippets" {
|
|
||||||
default = [
|
|
||||||
"vimPlugins"
|
|
||||||
"friendly-snippets"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
extraPlugins = [ cfg.package ];
|
|
||||||
|
|
||||||
|
extraConfig = {
|
||||||
# Simply add an element to the `fromVscode` list to trigger the import of friendly-snippets
|
# Simply add an element to the `fromVscode` list to trigger the import of friendly-snippets
|
||||||
plugins.luasnip.fromVscode = [ { } ];
|
plugins.luasnip.fromVscode = [ { } ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue