fix: cleanup unnecessary treesitter langs and mason lsp servers

This commit is contained in:
Folke Lemaitre 2024-06-05 18:07:01 +02:00
parent 368c060b45
commit f8268faa7c
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
14 changed files with 32 additions and 86 deletions

View file

@ -5,14 +5,6 @@ return {
root = { "ansible.cfg", ".ansible-lint" },
})
end,
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "yaml" })
end
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)

View file

@ -18,7 +18,7 @@ return {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "c", "cpp" })
vim.list_extend(opts.ensure_installed, { "cpp" })
end
end,
},

View file

@ -15,14 +15,6 @@ return {
})
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"elixir-ls",
})
end,
},
{
"nvim-neotest/neotest",
optional = true,

View file

@ -26,12 +26,4 @@ return {
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"helm-ls",
})
end,
},
}

View file

@ -11,7 +11,7 @@ return {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "json", "json5", "jsonc" })
vim.list_extend(opts.ensure_installed, { "json5" })
end
end,
},

View file

@ -15,19 +15,11 @@ return {
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "markdown", "markdown_inline" })
end
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "markdownlint", "marksman" })
vim.list_extend(opts.ensure_installed, { "markdownlint" })
end,
},
{

View file

@ -26,7 +26,7 @@ return {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "ninja", "python", "rst", "toml" })
vim.list_extend(opts.ensure_installed, { "ninja", "rst" })
end
end,
},

View file

@ -61,7 +61,7 @@ return {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "markdown", "markdown_inline", "r", "rnoweb" })
vim.list_extend(opts.ensure_installed, { "r", "rnoweb" })
end
end,
},

View file

@ -13,14 +13,6 @@ return {
})
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"solargraph",
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {

View file

@ -32,7 +32,7 @@ return {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "ron", "rust", "toml" })
vim.list_extend(opts.ensure_installed, { "ron", "rust" })
end,
},

View file

@ -19,6 +19,7 @@ return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
opts.highlight = opts.highlight or {}
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "bibtex" })
end

View file

@ -5,27 +5,10 @@ return {
root = "*.toml",
})
end,
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "toml" })
end
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "taplo" })
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
taplo = {},
},
"neovim/nvim-lspconfig",
opts = {
servers = {
taplo = {},
},
},
}

View file

@ -5,16 +5,6 @@ return {
})
end,
-- add yaml specific modules to treesitter
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "yaml" })
end
end,
},
-- yaml schema support
{
"b0o/SchemaStore.nvim",