1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-28 17:29:48 +01:00
neovim-flake/modules/lsp/lspkind/config.nix

21 lines
396 B
Nix
Raw Normal View History

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