astronvim_config/init.lua
RingOfStorms (Joshua Bell) f2e47684bc spell checking
2023-04-27 12:25:01 -06:00

37 lines
892 B
Lua

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