nvim/lua/lsp/python-ls.lua
2021-12-01 21:26:29 -08:00

7 lines
209 B
Lua

require'lspconfig'.pyright.setup{
cmd = {DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver", "--stdio"},
}
-- Autoformat on save.
vim.cmd("autocmd BufWritePre *.py execute ':Black'")