Last active
November 6, 2021 17:18
-
-
Save mjlbach/d5a141c457380802e3444e19503f8572 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LaunchPyright = function() | |
local client_id = vim.lsp.start_client({cmd = {"pyright-langserver", "--stdio"};}) | |
vim.lsp.buf_attach_client(0, client_id) | |
end | |
vim.cmd([[ | |
command! -range LaunchPyright execute 'lua LaunchPyright()' | |
]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment