nix-config/home/vim/plugin/settings/lspconfig.vim
Bruno BELANYI e8ffddedef home: vim: add basic LSP configuration
Trying it out with `pyright` for now.
2022-03-04 17:40:30 +01:00

12 lines
211 B
VimL

lua << EOF
local lsp = require("lspconfig")
local utils = require("ambroisie.utils")
-- Python
if utils.is_executable("pyright") then
lsp.pyright.setup({
on_attach = utils.on_attach,
})
end
EOF