Skip to content

Commit

Permalink
config(lvim): Enable prettier as formater for JS and TS
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed Dec 24, 2023
1 parent c451246 commit 755eb60
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .config/lvim/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@ lvim.builtin.treesitter.auto_install = true
local formatters = require "lvim.lsp.null-ls.formatters"
formatters.setup {
{ command = "alejandra" },
{
command = "prettier",
filetypes = { "javascript", "typescript", "typescriptreact" },
},
}
-- {
-- command = "prettier",
-- extra_args = { "--print-width", "100" },
-- filetypes = { "typescript", "typescriptreact" },
-- },
-- }

-- local linters = require "lvim.lsp.null-ls.linters"
-- linters.setup {
-- { command = "flake8", filetypes = { "python" } },
Expand Down

0 comments on commit 755eb60

Please sign in to comment.