nvf/modules/lsp/lspkind/config.nix

21 lines
370 B
Nix
Raw Normal View History

2023-04-17 22:48:44 +00:00
{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf nvim;
2023-04-17 22:48:44 +00:00
cfg = config.vim.lsp;
in {
config = mkIf (cfg.enable && cfg.lspkind.enable) {
vim.startPlugins = ["lspkind"];
vim.luaConfigRC.lspkind = nvim.dag.entryAnywhere ''
local lspkind = require'lspkind'
local lspkind_opts = {
mode = '${cfg.lspkind.mode}'
}
'';
};
}