mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-13 04:55:58 +01:00
19 lines
296 B
Nix
19 lines
296 B
Nix
|
{
|
||
|
pkgs,
|
||
|
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.nnoremap = {
|
||
|
"<silent><leader>ca" = ":CodeActionMenu<CR>";
|
||
|
};
|
||
|
};
|
||
|
}
|