Skip to content

Commit

Permalink
fix: pyright path
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Nov 28, 2023
1 parent b900440 commit 3d07e6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/ht/version.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local M = {}

M.last_updated_time = '2023.11.27'
M.last_updated_time = '2023.11.28'

return M
5 changes: 4 additions & 1 deletion src/conf/external_tools/lsp_servers/pyright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export const server = new LspServer({
},
setup: (_server: LspServer, on_attach, capabilities) => {
luaRequire("lspconfig").pyright.setup({
cmd: [`${HttsContext.getInstance()}/pyright-langserver`, "--stdio"],
cmd: [
`${HttsContext.getInstance().masonBinRoot}/pyright-langserver`,
"--stdio",
],
on_attach: on_attach,
capabilities: capabilities,
});
Expand Down

0 comments on commit 3d07e6b

Please sign in to comment.