2023-04-18 00:48:44 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-08 03:16:46 +01:00
|
|
|
}: let
|
2024-03-12 01:46:29 +01:00
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
2023-11-08 03:16:46 +01:00
|
|
|
|
2023-04-18 00:48:44 +02:00
|
|
|
cfg = config.vim.lsp;
|
|
|
|
in {
|
|
|
|
config = mkIf (cfg.enable && cfg.lspkind.enable) {
|
|
|
|
vim.startPlugins = ["lspkind"];
|
2024-07-20 10:30:48 +02:00
|
|
|
vim.pluginRC.lspkind = entryAnywhere ''
|
2023-04-18 00:48:44 +02:00
|
|
|
local lspkind = require'lspkind'
|
|
|
|
local lspkind_opts = {
|
|
|
|
mode = '${cfg.lspkind.mode}'
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|