mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 11:14:36 +02:00
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:
parent
b0906aca2e
commit
56d0c4579e
2 changed files with 8 additions and 4 deletions
|
@ -34,6 +34,9 @@
|
|||
example = {
|
||||
plugins.typescript-tools = {
|
||||
enable = true;
|
||||
luaConfig.pre = ''
|
||||
local api = require("typescript-tools.api")
|
||||
'';
|
||||
settings = {
|
||||
handlers = {
|
||||
"textDocument/publishDiagnostics" = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue