summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/core/treesitter.lua55
-rw-r--r--lua/plugins/lang/ansible.lua10
-rw-r--r--lua/plugins/lang/bash.lua10
-rw-r--r--lua/plugins/lang/c.lua9
-rw-r--r--lua/plugins/lang/dockerfile.lua10
-rw-r--r--lua/plugins/lang/go.lua14
-rw-r--r--lua/plugins/lang/groovy.lua10
-rw-r--r--lua/plugins/lang/jq.lua10
-rw-r--r--lua/plugins/lang/json.lua10
-rw-r--r--lua/plugins/lang/jsonnet.lua10
-rw-r--r--lua/plugins/lang/ledger.lua9
-rw-r--r--lua/plugins/lang/lua.lua11
-rw-r--r--lua/plugins/lang/nix.lua10
-rw-r--r--lua/plugins/lang/perl.lua10
-rw-r--r--lua/plugins/lang/promql.lua10
-rw-r--r--lua/plugins/lang/python.lua9
-rw-r--r--lua/plugins/lang/swift.lua10
-rw-r--r--lua/plugins/lang/terraform.lua13
-rw-r--r--lua/plugins/lang/yaml.lua10
-rw-r--r--lua/plugins/lang/zig.lua10
20 files changed, 0 insertions, 250 deletions
diff --git a/lua/plugins/core/treesitter.lua b/lua/plugins/core/treesitter.lua
deleted file mode 100644
index f7b46b9..0000000
--- a/lua/plugins/core/treesitter.lua
+++ /dev/null
@@ -1,55 +0,0 @@
----@param tbl table
----@return table
-local tbl_uniq = function(tbl)
- ---@type table<string, boolean>
- local added = {}
- local res = {}
- res = vim.tbl_filter(function(k)
- if added[k] then
- return false
- end
- added[k] = true
- return true
- end, tbl)
-
- return res
-end
-
-return {
- {
- "nvim-treesitter/nvim-treesitter",
- -- Disable for now, this has been a big source of pain and errors in the
- -- past
- enabled = false,
- build = ":TSUpdate",
- cmd = { "TSUpdateSync" },
- event = { "BufReadPost", "BufNewFile" },
- init = function()
- vim.o.foldmethod = "expr"
- vim.o.foldexpr = "nvim_treesitter#foldexpr()"
- end,
- opts = {
- indent = { enable = true },
- ensure_installed = { "query" },
- ignore_install = {},
- highlight = {
- enable = true,
- additional_vim_regex_highlighting = false,
- },
- query_linter = {
- enable = true,
- use_virtual_text = true,
- lint_events = { "BufWrite", "CursorHold" },
- },
- },
- config = function(_, opts)
- if type(opts.ensure_installed) == "table" then
- opts.ensure_installed = tbl_uniq(opts.ensure_installed)
- end
- if type(opts.ignore_install) == "table" then
- opts.ignore_install = tbl_uniq(opts.ignore_install)
- end
- require("nvim-treesitter.configs").setup(opts)
- end,
- },
-}
diff --git a/lua/plugins/lang/ansible.lua b/lua/plugins/lang/ansible.lua
index e86b201..52c79d0 100644
--- a/lua/plugins/lang/ansible.lua
+++ b/lua/plugins/lang/ansible.lua
@@ -5,16 +5,6 @@ return {
},
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "yaml" })
- end
- end,
- },
-
- {
"neovim/nvim-lspconfig",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/bash.lua b/lua/plugins/lang/bash.lua
index 1c4b738..7ac5bc5 100644
--- a/lua/plugins/lang/bash.lua
+++ b/lua/plugins/lang/bash.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "bash" })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/c.lua b/lua/plugins/lang/c.lua
index a42e9d8..89200f9 100644
--- a/lua/plugins/lang/c.lua
+++ b/lua/plugins/lang/c.lua
@@ -1,14 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "c" })
- end
- end,
- },
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/dockerfile.lua b/lua/plugins/lang/dockerfile.lua
index 9f85765..5140cdd 100644
--- a/lua/plugins/lang/dockerfile.lua
+++ b/lua/plugins/lang/dockerfile.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "dockerfile" })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/go.lua b/lua/plugins/lang/go.lua
index becddf8..2a20741 100644
--- a/lua/plugins/lang/go.lua
+++ b/lua/plugins/lang/go.lua
@@ -8,20 +8,6 @@ return {
},
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, {
- "go",
- "gomod",
- "gosum",
- })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/groovy.lua b/lua/plugins/lang/groovy.lua
index 020daa2..b9c6994 100644
--- a/lua/plugins/lang/groovy.lua
+++ b/lua/plugins/lang/groovy.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "groovy" })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/jq.lua b/lua/plugins/lang/jq.lua
index 7123ae8..da249cc 100644
--- a/lua/plugins/lang/jq.lua
+++ b/lua/plugins/lang/jq.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "jq" })
- end
- end,
- },
-
- {
"neovim/nvim-lspconfig",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/json.lua b/lua/plugins/lang/json.lua
index bdecb7f..891451a 100644
--- a/lua/plugins/lang/json.lua
+++ b/lua/plugins/lang/json.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "json" })
- end
- end,
- },
-
- {
"neovim/nvim-lspconfig",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/jsonnet.lua b/lua/plugins/lang/jsonnet.lua
index c6663d0..41a6ef9 100644
--- a/lua/plugins/lang/jsonnet.lua
+++ b/lua/plugins/lang/jsonnet.lua
@@ -5,16 +5,6 @@ return {
},
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "jsonnet" })
- end
- end,
- },
-
- {
"neovim/nvim-lspconfig",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/ledger.lua b/lua/plugins/lang/ledger.lua
index dcd6a0f..a380d34 100644
--- a/lua/plugins/lang/ledger.lua
+++ b/lua/plugins/lang/ledger.lua
@@ -1,14 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "ledger" })
- end
- end,
- },
- {
"ledger/vim-ledger",
ft = { "ldg", "ledger", "journal" },
},
diff --git a/lua/plugins/lang/lua.lua b/lua/plugins/lang/lua.lua
index a6ac64e..e45c0a4 100644
--- a/lua/plugins/lang/lua.lua
+++ b/lua/plugins/lang/lua.lua
@@ -1,16 +1,5 @@
return {
-- { "folke/neodev.nvim", lazy = true, opts = {} },
-
- {
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "lua" })
- end
- end,
- },
-
{
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
diff --git a/lua/plugins/lang/nix.lua b/lua/plugins/lang/nix.lua
index 3eca0ee..99a90ce 100644
--- a/lua/plugins/lang/nix.lua
+++ b/lua/plugins/lang/nix.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "nix" })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/perl.lua b/lua/plugins/lang/perl.lua
index 5b9953f..7cec0f0 100644
--- a/lua/plugins/lang/perl.lua
+++ b/lua/plugins/lang/perl.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "perl" })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/promql.lua b/lua/plugins/lang/promql.lua
index 79ec72a..c2c6bd3 100644
--- a/lua/plugins/lang/promql.lua
+++ b/lua/plugins/lang/promql.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "promql" })
- end
- end,
- },
-
- {
name = "promqlfmt",
url = "https://git.segundo.io/nvim/promqlfmt",
--dir = "/Users/christian.segundo/git/promql.nvim",
diff --git a/lua/plugins/lang/python.lua b/lua/plugins/lang/python.lua
index d1f89d9..62470c6 100644
--- a/lua/plugins/lang/python.lua
+++ b/lua/plugins/lang/python.lua
@@ -1,14 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "python" })
- end
- end,
- },
- {
"neovim/nvim-lspconfig",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/swift.lua b/lua/plugins/lang/swift.lua
index aa3a6ef..754af51 100644
--- a/lua/plugins/lang/swift.lua
+++ b/lua/plugins/lang/swift.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "swift" })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/terraform.lua b/lua/plugins/lang/terraform.lua
index 1bf5b6e..b8aa29f 100644
--- a/lua/plugins/lang/terraform.lua
+++ b/lua/plugins/lang/terraform.lua
@@ -1,18 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, {
- "hcl",
- "terraform",
- })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/yaml.lua b/lua/plugins/lang/yaml.lua
index 522dee4..8b119c8 100644
--- a/lua/plugins/lang/yaml.lua
+++ b/lua/plugins/lang/yaml.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "yaml" })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then
diff --git a/lua/plugins/lang/zig.lua b/lua/plugins/lang/zig.lua
index 3954ca6..b65604b 100644
--- a/lua/plugins/lang/zig.lua
+++ b/lua/plugins/lang/zig.lua
@@ -1,15 +1,5 @@
return {
{
- "nvim-treesitter/nvim-treesitter",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.ensure_installed = opts.ensure_installed or {}
- vim.list_extend(opts.ensure_installed, { "zig" })
- end
- end,
- },
-
- {
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
if type(opts) == "table" then