plugins/typescript-tools: use plugin's luaConfig

When lazy loading, we need to isolate the plugin's config otherwise it
will fail because the generated config is still loaded immediately in
lspconfig's lua.
This commit is contained in:
Austin Horstman 2025-02-02 10:02:49 -06:00
parent b0906aca2e
commit 56d0c4579e
No known key found for this signature in database
2 changed files with 8 additions and 4 deletions

View file

@ -34,6 +34,9 @@
example = {
plugins.typescript-tools = {
enable = true;
luaConfig.pre = ''
local api = require("typescript-tools.api")
'';
settings = {
handlers = {
"textDocument/publishDiagnostics" = ''