mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 05:55:59 +01:00
17 lines
303 B
Nix
17 lines
303 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.lsp;
|
|
in {
|
|
config = mkIf (cfg.enable && cfg.nvimCodeActionMenu.enable) {
|
|
vim.startPlugins = ["nvim-code-action-menu"];
|
|
|
|
vim.maps.normal = {
|
|
"<silent><leader>ca" = {action = ":CodeActionMenu<CR>";};
|
|
};
|
|
};
|
|
}
|