This commit is contained in:
2026-04-11 10:05:15 +02:00
parent 2a102a0ee1
commit 4488f8549a
7 changed files with 95 additions and 24 deletions

View File

@ -1,4 +1,5 @@
vim.pack.add({ 'https://github.com/neovim/nvim-lspconfig' })
vim.lsp.enable({ 'lua_ls' })
vim.lsp.enable({ 'clangd' })
@ -7,25 +8,17 @@ vim.lsp.config("rust_analyzer", {
["rust-analyzer"] = {
completion =
{
postfix = { enable = false, },
postfix = { enable = true, },
},
}
},
})
vim.lsp.enable('rust_analyzer', {
settings = {
['rust-analyzer'] = {
completion = {
postfix = {
enable = true, -- Postfix snippets
['rust-analyzer'] = {
check = {
command = "clippy",
},
},
check = {
command = "clippy",
},
}
},
},
}
})
vim.lsp.enable('rust_analyzer')
vim.keymap.set("n", "<leader>t", vim.diagnostic.open_float)
vim.keymap.set("n", "<leader>sr", vim.lsp.buf.rename)