mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-01 19:11:15 +00:00
21 lines
506 B
Nix
21 lines
506 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.lsp;
|
|
|
|
self = import ./nvim-code-action-menu.nix {inherit lib;};
|
|
|
|
mappingDefinitions = self.options.vim.lsp.nvimCodeActionMenu.mappings;
|
|
mappings = addDescriptionsToMappings cfg.nvimCodeActionMenu.mappings mappingDefinitions;
|
|
in {
|
|
config = mkIf (cfg.enable && cfg.nvimCodeActionMenu.enable) {
|
|
vim.startPlugins = ["nvim-code-action-menu"];
|
|
|
|
vim.maps.normal = mkSetBinding mappings.open ":CodeActionMenu<CR>";
|
|
};
|
|
}
|