home: vim: add basic LSP configuration

Trying it out with `pyright` for now.
This commit is contained in:
Bruno BELANYI 2022-03-01 15:22:59 +01:00
parent 44dae3a940
commit e8ffddedef

View file

@ -0,0 +1,11 @@
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