this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add format-on-save to null-ls

+11 -11
+1 -1
lua/user/lsp/lsp-installer.lua
··· 10 10 end 11 11 end 12 12 13 - -- TODO: turn of formatting in htmlls & cssls 13 + -- TODO: turn off formatting in htmlls & cssls 14 14 15 15 -- Register a handler that will be called for all installed servers. 16 16 -- Or register handlers on specific server instances.
+10 -10
lua/user/lsp/null-ls.lua
··· 32 32 extra_args = { '--no-semi', '--single-quote', '--jsx-single-quote' } 33 33 }) 34 34 }, 35 - -- on_attach = function (client) 36 - -- if client.resolved_capabilities.document_formatting then 37 - -- vim.cmd([[ 38 - -- augroup LspFormatting 39 - -- autocmd! * <buffer> 40 - -- autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync() 41 - -- augroup END 42 - -- ]]) 43 - -- end 44 - -- end, 35 + on_attach = function(client) 36 + if client.resolved_capabilities.document_formatting then 37 + vim.cmd([[ 38 + augroup LspFormatting 39 + autocmd! * <buffer> 40 + autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync() 41 + augroup END 42 + ]]) 43 + end 44 + end, 45 45 })