astronvim_config/init.lua
RingOfStorms (Joshua Bell) 0d35cfb65d many updates
2023-04-13 02:36:10 -05:00

30 lines
644 B
Lua

vim.cmd([[
augroup FileType_http
au!
au BufNewFile,BufRead *.http setfiletype http
augroup END
]])
return {
colorscheme = "material",
lsp = {
formatting = { format_on_save = false },
setup_handlers = {
-- add custom handler
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,
},
},
}