home: vim: add basic LSP configuration
Trying it out with `pyright` for now.
This commit is contained in:
parent
53d84b884d
commit
84188cb7fa
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