mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 10:59:49 +01:00
20 lines
506 B
Nix
20 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>";
|
|
};
|
|
}
|