mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 21:09:47 +01:00
25 lines
458 B
Nix
25 lines
458 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.lsp;
|
|
in {
|
|
options.vim.lsp = {
|
|
lspSignature = {
|
|
enable = mkEnableOption "lsp signature viewer";
|
|
};
|
|
};
|
|
|
|
config = mkIf (cfg.enable && cfg.lspSignature.enable) {
|
|
vim.startPlugins = ["lsp-signature"];
|
|
|
|
vim.luaConfigRC.lsp-signature = nvim.dag.entryAnywhere ''
|
|
-- Enable lsp signature viewer
|
|
require("lsp_signature").setup()
|
|
'';
|
|
};
|
|
}
|