update lsp for rust

This commit is contained in:
2025-07-18 00:12:30 +01:00
parent 21bedced4f
commit cfac74a751
3 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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',
}, },
}, },
}, },

View File

@ -79,6 +79,8 @@ return {
}, },
context = { context = {
enable = true, enable = true,
max_lines = 3,
trim_scope = 'innner', -- show inner most context (could be outer)
}, },
}, },
}, },