comparison .chezmoitemplates/init.lua @ 509:80b42722bfa8

Add prettier formatting to null-ls
author zegervdv <zegervdv@me.com>
date Sat, 18 Dec 2021 10:40:32 +0100
parents 18c6eb4d5c71
children 1f557997bfef
comparison
equal deleted inserted replaced
508:ee04e4821479 509:80b42722bfa8
807 null_ls.config { 807 null_ls.config {
808 sources = { 808 sources = {
809 null_ls.builtins.formatting.black, 809 null_ls.builtins.formatting.black,
810 null_ls.builtins.formatting.stylua, 810 null_ls.builtins.formatting.stylua,
811 null_ls.builtins.diagnostics.shellcheck, 811 null_ls.builtins.diagnostics.shellcheck,
812 null_ls.builtins.formatting.prettier,
812 }, 813 },
813 } 814 }
814 lsp['null-ls'].setup { 815 lsp['null-ls'].setup {
815 on_attach = on_attach, 816 on_attach = on_attach,
816 root_dir = require('lspconfig.util').root_pattern('.hg', '.git'), 817 root_dir = require('lspconfig.util').root_pattern('.hg', '.git', 'stylua.toml'),
817 } 818 }
818 819
819 local luadev = require('lua-dev').setup { 820 local luadev = require('lua-dev').setup {
820 lspconfig = { 821 lspconfig = {
821 cmd = { 'lua-language-server' }, 822 cmd = { 'lua-language-server' },