This commit is contained in:
2026-06-27 11:43:47 +02:00
parent f0807241fa
commit 6049b4260e
3 changed files with 67 additions and 17 deletions
+16
View File
@@ -11,7 +11,23 @@ return {
root_markers = { "compile_commands.json", ".git" },
})
vim.lsp.config('rust_analyzer', {
capabilities = capabilities,
cmd = { "rust-analyzer" },
filetypes = { "rust" },
root_markers = { "Cargo.toml", ".git" },
})
vim.lsp.config('pyright', {
capabilities = capabilities,
filetypes = { "python" },
root_markers = { "pyproject.toml", "setup.py", ".git" },
})
vim.lsp.enable('clangd')
vim.lsp.enable('rust_analyzer')
vim.lsp.enable('pyright')
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float)
end
}