inlay hitns!
This commit is contained in:
parent
2cd8efc1df
commit
394348e8a9
4 changed files with 24 additions and 41 deletions
23
init.lua
23
init.lua
|
@ -1,11 +1,32 @@
|
|||
return {
|
||||
colorscheme = "material",
|
||||
lsp = {
|
||||
-- server_registration = function(server, opts)
|
||||
-- if server == 'rust_analyzer' then
|
||||
-- require('rust-tools').setup({ server = opts })
|
||||
-- return
|
||||
-- end
|
||||
--
|
||||
-- require('lspconfig')[server].setup(opts)
|
||||
-- end,
|
||||
formatting = { format_on_save = false },
|
||||
-- skip_setup = { "rust_analyzer" },
|
||||
setup_handlers = {
|
||||
-- add custom handler
|
||||
rust_analyzer = function(_, opts) require("rust-tools").setup { server = opts } end,
|
||||
rust_analyzer = function(_, opts)
|
||||
local rt = require "rust-tools"
|
||||
rt.setup {
|
||||
server = opts,
|
||||
tools = {
|
||||
inlay_hints = {
|
||||
parameter_hints_prefix = "< ",
|
||||
other_hints_prefix = ": ",
|
||||
highlight = "inlays",
|
||||
},
|
||||
},
|
||||
}
|
||||
rt.inlay_hints.enable()
|
||||
end,
|
||||
},
|
||||
-- server_registration = function(server, opts)
|
||||
-- if server == "rust_analyzer" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue