mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
add: prettier to default js formatter
This commit is contained in:
parent
29a0e20f56
commit
618b816d52
3 changed files with 8 additions and 7 deletions
|
@ -35,7 +35,7 @@ if pcode.active_rust_config then
|
|||
table.insert(pcode.treesitter_ensure_installed, "rust")
|
||||
end
|
||||
-- run if javascript config true
|
||||
if pcode.active_javascript_config.status then
|
||||
if pcode.active_javascript_config.active then
|
||||
local lst_ts = { "html", "javascript", "typescript", "tsx", "css", "json", "jsonc" }
|
||||
for _, ts in pairs(lst_ts) do
|
||||
table.insert(pcode.treesitter_ensure_installed, ts)
|
||||
|
@ -43,6 +43,7 @@ if pcode.active_javascript_config.status then
|
|||
for _, lsp in pairs({ "html", "cssls", "emmet_ls", "eslint", "jsonls", "tsserver" }) do
|
||||
table.insert(pcode.mason_ensure_installed, lsp)
|
||||
end
|
||||
table.insert(pcode.null_ls_ensure_installed, "prettier")
|
||||
end
|
||||
-- run if php config true
|
||||
if pcode.active_php_config then
|
||||
|
@ -84,7 +85,7 @@ if pcode.active_cpp_config then
|
|||
pcode.nvim_dap = true
|
||||
end
|
||||
-- run if java config true
|
||||
if pcode.active_java_config then
|
||||
if pcode.active_java_config.active then
|
||||
table.insert(pcode.treesitter_ensure_installed, "java")
|
||||
table.insert(pcode.mason_ensure_installed, "jdtls")
|
||||
table.insert(pcode.dap_ensure_installed, "javadbg")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue