inlay hitns!

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-04-11 17:46:42 -05:00
parent 2cd8efc1df
commit 394348e8a9
4 changed files with 24 additions and 41 deletions

View file

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