asd
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user