nix-config/home/vim/plugin/settings/lspconfig.vim

19 lines
343 B
VimL
Raw Normal View History

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
-- Rust
if utils.is_executable("rust-analyzer") then
lsp.rust_analyzer.setup({
on_attach = utils.on_attach,
})
end
EOF