Add additional formatters/language servers

feature/lua-configs
Alex Selimov 9 months ago
parent 4556e70dcd
commit e5638c1fc0

@ -425,6 +425,9 @@ require("lazy").setup({
local ensure_installed = vim.tbl_keys(servers or {}) local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, { vim.list_extend(ensure_installed, {
"stylua", -- Used to format lua code "stylua", -- Used to format lua code
"black",
"isort",
"clang-format",
}) })
require("mason-tool-installer").setup({ ensure_installed = ensure_installed }) require("mason-tool-installer").setup({ ensure_installed = ensure_installed })
@ -458,8 +461,10 @@ require("lazy").setup({
formatters_by_ft = { formatters_by_ft = {
lua = { "stylua" }, lua = { "stylua" },
-- Conform can also run multiple formatters sequentially -- Conform can also run multiple formatters sequentially
python = { "black" }, python = { "isort", "black" },
rust = { "rustfmt" }, rust = { "rustfmt" },
cpp = { "clang-format" },
c = { "clang-format" },
}, },
}, },
}, },

Loading…
Cancel
Save