format-before-write, where possible
This commit is contained in:
parent
0efe262d46
commit
2352881477
1 changed files with 6 additions and 0 deletions
|
|
@ -55,6 +55,12 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
|
callback = function()
|
||||||
|
vim.lsp.buf.format()
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
nvim_lsp.diagnosticls.setup {
|
nvim_lsp.diagnosticls.setup {
|
||||||
filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact', 'css', 'scss', 'markdown', 'pandoc' },
|
filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact', 'css', 'scss', 'markdown', 'pandoc' },
|
||||||
init_options = {
|
init_options = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue