feat: move formatting plugins to formatting.lua

This commit is contained in:
Devin Haska 2024-04-26 22:49:30 -06:00
parent bd031587a5
commit bca2c8ec94
7 changed files with 214 additions and 204 deletions

View file

@ -1,26 +1,40 @@
return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local config = require("nvim-treesitter.configs")
config.setup({
ensure_installed = { "lua", "javascript", "typescript", "tsx", "htmldjango", "html", "jsonc", "json", "jsdoc", "markdown", "markdown_inline", "vim", "vimdoc" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true }
})
end
},
{
"nvim-treesitter/nvim-treesitter-context",
opts = {
max_lines = 2,
}
},
{
'windwp/nvim-autopairs',
event = "InsertEnter",
opts = {}
}
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local config = require("nvim-treesitter.configs")
config.setup({
ensure_installed = {
"lua",
"javascript",
"typescript",
"tsx",
"htmldjango",
"html",
"jsonc",
"json",
"jsdoc",
"markdown",
"markdown_inline",
"vim",
"vimdoc",
},
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end,
},
{
"nvim-treesitter/nvim-treesitter-context",
opts = {
max_lines = 2,
},
},
{
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {},
},
}