[nvim,zsh] Set up pyright LSP for Python development
This commit is contained in:
parent
64ae7ed11f
commit
47a622250f
3 changed files with 18 additions and 0 deletions
12
config/nvim/after/ftplugin/python.lua
Normal file
12
config/nvim/after/ftplugin/python.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
local safariToolsPath = vim.env.sfi .. "/Tools/Scripts"
|
||||
|
||||
vim.opt_local.path = {
|
||||
".",
|
||||
"",
|
||||
safariToolsPath,
|
||||
safariToolsPath .. "/safaripy",
|
||||
}
|
||||
|
||||
|
|
@ -57,6 +57,11 @@ lspconfig.lua_ls.setup {
|
|||
},
|
||||
}
|
||||
|
||||
lspconfig.pyright.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = cmp_capabilities,
|
||||
}
|
||||
|
||||
lspconfig.tailwindcss.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = cmp_capabilities,
|
||||
|
|
|
@ -9,6 +9,7 @@ neovim_init_once()
|
|||
npm install -g \
|
||||
@tailwindcss/language-server \
|
||||
eslint \
|
||||
pyright \
|
||||
typescript-language-server \
|
||||
typescript \
|
||||
vscode-langservers-extracted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue