vim.cmd [[ augroup FileType_http au! au BufNewFile,BufRead *.http setfiletype http augroup END autocmd BufRead,BufNewFile *.ts,*.tsx,*.py,*.js,*.jsx,*.css,*.scss,*.rs,*.lua,*.html setlocal spell spelllang=en_us wrap " autocmd BufRead,BufNewFile * setlocal spell spelllang=en_us wrap set spellfile=~/.config/nvim/lua/user/en.utf-8.add ]] 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, }, }, }