feat: add spell check
This commit is contained in:
parent
2bed6f50c0
commit
d42d294c95
122 changed files with 454 additions and 5657 deletions
|
|
@ -11,25 +11,17 @@ require("mason-null-ls").setup({
|
|||
"autopep8",
|
||||
"stylua",
|
||||
"rustfmt",
|
||||
"stylish-haskell",
|
||||
"stylish-haskell",
|
||||
},
|
||||
})
|
||||
|
||||
null_ls.setup({
|
||||
on_attach = function(client, bufnr)
|
||||
if client.server_capabilities.documentFormattingProvider then
|
||||
vim.cmd("nnoremap <silent><buffer> <Leader>f :lua vim.lsp.buf.format { async = true }<CR>")
|
||||
|
||||
-- format on save
|
||||
vim.cmd("autocmd BufWritePost <buffer> lua vim.lsp.buf.format { async = true }")
|
||||
end
|
||||
|
||||
if client.server_capabilities.documentRangeFormattingProvider then
|
||||
vim.cmd("xnoremap <silent><buffer> <Leader>f :lua vim.lsp.buf.range_formatting({})<CR>")
|
||||
end
|
||||
end,
|
||||
sources = {
|
||||
require("null-ls").builtins.completion.spell,
|
||||
require("null-ls").builtins.formatting.prettier,
|
||||
require("null-ls").builtins.formatting.clang_format,
|
||||
require("null-ls").builtins.formatting.latexindent,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue