mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-02 03:21:14 +00:00
22 lines
360 B
Nix
22 lines
360 B
Nix
{
|
|
pkgs,
|
|
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()
|
|
'';
|
|
};
|
|
}
|