home: vim: add basic LSP configuration
Trying it out with `pyright` for now.
This commit is contained in:
parent
44dae3a940
commit
e8ffddedef
11
home/vim/plugin/settings/lspconfig.vim
Normal file
11
home/vim/plugin/settings/lspconfig.vim
Normal 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
|
Loading…
Reference in a new issue