kotlin: massive speedup in loadtimes for lsp

This commit is contained in:
Soliprem 2024-10-07 13:46:55 +02:00
parent c90f6659cb
commit 52433a93c2

View file

@ -8,8 +8,7 @@
inherit (lib.modules) mkIf mkMerge; inherit (lib.modules) mkIf mkMerge;
inherit (lib.meta) getExe; inherit (lib.meta) getExe;
inherit (lib.nvim.languages) diagnosticsToLua; inherit (lib.nvim.languages) diagnosticsToLua;
inherit (lib.types) package enum; inherit (lib.types) package;
inherit (lib.attrsets) attrNames;
inherit (lib.nvim.types) mkGrammarOption diagnostics; inherit (lib.nvim.types) mkGrammarOption diagnostics;
inherit (lib.lists) isList; inherit (lib.lists) isList;
inherit (lib.nvim.lua) expToLua; inherit (lib.nvim.lua) expToLua;
@ -98,7 +97,7 @@ in {
on_attach=default_on_attach, on_attach=default_on_attach,
init_options = { init_options = {
-- speeds up the startup time for the LSP -- speeds up the startup time for the LSP
storagePath = "vim.fn.stdpath('state') .. '/kotlin'", storagePath = vim.fn.stdpath('state') .. '/kotlin',
}, },
cmd = ${ cmd = ${
if isList cfg.lsp.package if isList cfg.lsp.package