Skip to content

Commit

Permalink
fix(pack): use lsp_opts to get server config for typescript (#740)
Browse files Browse the repository at this point in the history
fix(pack): use lsp_opts to get server config

Co-authored-by: Hans Tognon <git@tobihans.space>
  • Loading branch information
tobihans and tobihans committed Jan 29, 2024
1 parent dba59ba commit d1f52fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/typescript-all-in-one/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ return {
end
end,
})
opts.server = require("astrolsp").config "denols"
opts.server = require("astrolsp").lsp_opts "denols"
opts.server.root_dir = require("lspconfig.util").root_pattern("deno.json", "deno.jsonc")
end,
},
Expand Down
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/typescript-deno/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ return {
{
"sigmasd/deno-nvim",
ft = { "javascript", "typescript", "javascriptreact", "typescriptreact" },
opts = function() return { server = require("astrolsp").config "denols" } end,
opts = function() return { server = require("astrolsp").lsp_opts "denols" } end,
},
}

0 comments on commit d1f52fe

Please sign in to comment.