mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-28 05:01:03 +01:00
plugins/gdscript-extended-lsp: init
This commit is contained in:
parent
6bd43bf321
commit
9a52ac7c36
2 changed files with 73 additions and 0 deletions
27
plugins/by-name/gdscript-extended-lsp/default.nix
Normal file
27
plugins/by-name/gdscript-extended-lsp/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "gdscript-extended-lsp";
|
||||||
|
package = "gdscript-extended-lsp-nvim";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
picker = "snacks";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = cfg: opts: {
|
||||||
|
warnings = lib.nixvim.mkWarnings "plugins.gdscript-extended-lsp" (
|
||||||
|
lib.mapAttrsToList
|
||||||
|
(picker: pluginName: {
|
||||||
|
when = cfg.settings.picker or null == picker && !config.plugins.${pluginName}.enable;
|
||||||
|
message = ''
|
||||||
|
You have defined `${opts.settings}.picker = "${picker}"` but `plugins.${pluginName}` is not enabled.
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
{
|
||||||
|
telescope = "telescope";
|
||||||
|
snacks = "snacks";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.gdscript-extended-lsp.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins = {
|
||||||
|
gdscript-extended-lsp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
doc_file_extension = ".txt";
|
||||||
|
view_type = "vsplit";
|
||||||
|
split_side = false;
|
||||||
|
keymaps = {
|
||||||
|
declaration = "gd";
|
||||||
|
close = [
|
||||||
|
"q"
|
||||||
|
"<Esc>"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
floating_win_size = 0.8;
|
||||||
|
picker = "telescope";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
telescope.enable = true;
|
||||||
|
web-devicons.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins = {
|
||||||
|
gdscript-extended-lsp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
picker = "snacks";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
snacks = {
|
||||||
|
enable = true;
|
||||||
|
settings.picker.enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue