Skip to content

Commit

Permalink
succes formatter implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
amenpunk committed Jul 1, 2024
1 parent c269d03 commit ca8f897
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions lua/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@ require("lualine").setup({
})

require("hop").setup()

require("conform").setup({
formatters_by_ft = {
lua = { "stylua" },
-- python = { "isort", "black" },
-- javascript = { { "prettierd", "prettier" } },
php = { { "php-cs-fixer", "phpcbf", "pint", "tlint" } },
},
})
2 changes: 1 addition & 1 deletion lua/plugins/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ return {
end

opts.diagnostics = {
virtual_text = false,
virtual_text = true,
underline = false,
update_in_insert = true,
severity_sort = true,
Expand Down

0 comments on commit ca8f897

Please sign in to comment.