Skip to content

Instantly share code, notes, and snippets.

@mjlbach
Last active November 6, 2021 17:18
Show Gist options
  • Save mjlbach/d5a141c457380802e3444e19503f8572 to your computer and use it in GitHub Desktop.
Save mjlbach/d5a141c457380802e3444e19503f8572 to your computer and use it in GitHub Desktop.
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