update lsp for rust
This commit is contained in:
@ -3,6 +3,10 @@ return function(client, bufnr)
|
|||||||
require('nvim-navbuddy').attach(client, bufnr)
|
require('nvim-navbuddy').attach(client, bufnr)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if client.server_capabilities.inlayHintProvider ~= nil and client.server_capabilities.inlayHintProvider.resolveProvider then
|
||||||
|
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
|
||||||
|
end
|
||||||
|
|
||||||
local nmap = function(keys, func, desc)
|
local nmap = function(keys, func, desc)
|
||||||
if desc then
|
if desc then
|
||||||
desc = 'LSP: ' .. desc
|
desc = 'LSP: ' .. desc
|
||||||
|
|||||||
@ -36,6 +36,8 @@ function M.setup()
|
|||||||
'-Wclippy::complexity',
|
'-Wclippy::complexity',
|
||||||
'-Wclippy::pedantic',
|
'-Wclippy::pedantic',
|
||||||
'-Wclippy::perf',
|
'-Wclippy::perf',
|
||||||
|
'-Aclippy::missing_errors_doc',
|
||||||
|
'-Aclippy::missing_panics_doc',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -79,6 +79,8 @@ return {
|
|||||||
},
|
},
|
||||||
context = {
|
context = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
max_lines = 3,
|
||||||
|
trim_scope = 'innner', -- show inner most context (could be outer)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user