mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 04:09:48 +01:00
25 lines
413 B
Nix
25 lines
413 B
Nix
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
with lib;
|
||
|
with builtins; let
|
||
|
cfg = config.vim.lsp;
|
||
|
in {
|
||
|
options.vim.lsp = {
|
||
|
nvimCodeActionMenu = {
|
||
|
enable = mkEnableOption "nvim code action menu";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf (cfg.enable && cfg.nvimCodeActionMenu.enable) {
|
||
|
vim.startPlugins = ["nvim-code-action-menu"];
|
||
|
|
||
|
vim.nnoremap = {
|
||
|
"<silent><leader>ca" = ":CodeActionMenu<CR>";
|
||
|
};
|
||
|
};
|
||
|
}
|