mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-23 22:19:49 +01:00
20 lines
352 B
Nix
20 lines
352 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.lsp;
|
|
in {
|
|
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()
|
|
'';
|
|
};
|
|
}
|