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