Skip to content

Commit

Permalink
lsp-bridge: switch to pyright from pylsp
Browse files Browse the repository at this point in the history
  • Loading branch information
douo committed Feb 12, 2023
1 parent a6273d7 commit 6595315
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions custom-langserver/pyright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "pyright",
"languageId": "python",
"command": [
"pyright-langserver",
"--stdio"
],
"ignore-diagnostic": "# type: ignore",
"settings": {
"python.analysis": {
"autoImportCompletions": true,
"typeshedPaths": [],
"stubPath": "",
"useLibraryCodeForTypes": true,
"diagnosticMode": "openFilesOnly",
"typeCheckingMode": "basic",
"logLevel": "verbose",
"autoSearchPaths": true,
"extraPaths": []
},
"pythonPath": "python",
"venvPath": ""
}
}
4 changes: 2 additions & 2 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,8 @@



(setq douo/python-lsp-server "pylsp")
;; (setq douo/python-lsp-server "pyright")
;; (setq douo/python-lsp-server "pylsp")
(setq douo/python-lsp-server "pyright")

;; (add-to-list 'load-path (concat user-emacs-directory "lisp/lsp-bridge"))
(use-package lsp-bridge
Expand Down

0 comments on commit 6595315

Please sign in to comment.