fix(nvim/rust-analyzer): fix completion
This commit is contained in:
parent
499892baac
commit
813da27625
5
rust.lua
5
rust.lua
@ -115,7 +115,6 @@ vim.g.rustaceanvim = {
|
|||||||
-- setting it to false may improve startup time
|
-- setting it to false may improve startup time
|
||||||
standalone = true,
|
standalone = true,
|
||||||
cmd = {(deps["rust_analyzer_path"] .. "/bin/rust-analyzer")},
|
cmd = {(deps["rust_analyzer_path"] .. "/bin/rust-analyzer")},
|
||||||
capabilities = require("cmp_nvim_lsp").default_capabilities(c),
|
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
require("lsp-inlayhints").on_attach(client, bufnr)
|
require("lsp-inlayhints").on_attach(client, bufnr)
|
||||||
require('crates').setup()
|
require('crates').setup()
|
||||||
@ -152,7 +151,9 @@ vim.g.rustaceanvim = {
|
|||||||
-- Goto previous/next diagnostic warning/error
|
-- Goto previous/next diagnostic warning/error
|
||||||
vim.keymap.set("n", "g[", vim.diagnostic.goto_prev, keymap_opts)
|
vim.keymap.set("n", "g[", vim.diagnostic.goto_prev, keymap_opts)
|
||||||
vim.keymap.set("n", "g]", vim.diagnostic.goto_next, keymap_opts)
|
vim.keymap.set("n", "g]", vim.diagnostic.goto_next, keymap_opts)
|
||||||
end
|
end,
|
||||||
|
settings = {
|
||||||
|
},
|
||||||
}, -- rust-analyzer options
|
}, -- rust-analyzer options
|
||||||
|
|
||||||
-- debugging stuff
|
-- debugging stuff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user