summaryrefslogtreecommitdiff
path: root/public/nvim/.nvim/lua/plugins/lang
diff options
context:
space:
mode:
Diffstat (limited to 'public/nvim/.nvim/lua/plugins/lang')
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/ansible.lua21
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/bash.lua41
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/c.lua20
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/dockerfile.lua24
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/go.lua65
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/groovy.lua38
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/helm.lua6
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/jq.lua21
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/json.lua21
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/jsonnet.lua26
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/ledger.lua25
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/lua.lua46
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/markdown.lua76
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/perl.lua36
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/promql.lua19
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/swift.lua35
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/terraform.lua40
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/typescript.lua34
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/yaml.lua59
-rw-r--r--public/nvim/.nvim/lua/plugins/lang/zig.lua40
20 files changed, 0 insertions, 693 deletions
diff --git a/public/nvim/.nvim/lua/plugins/lang/ansible.lua b/public/nvim/.nvim/lua/plugins/lang/ansible.lua
deleted file mode 100644
index 91f34df..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/ansible.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-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
- opts.servers = opts.servers or {}
- opts.servers.ansiblels = {}
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/bash.lua b/public/nvim/.nvim/lua/plugins/lang/bash.lua
deleted file mode 100644
index 141ca1c..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/bash.lua
+++ /dev/null
@@ -1,41 +0,0 @@
-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
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.code_actions.shellcheck, -- Diagnostics handled by Bash LS
- null_ls.builtins.formatting.shfmt,
- })
- end
- end,
- },
-
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- -- Just here because it doesn't work with the default node
- -- https://github.com/bash-lsp/bash-language-server/issues/418
- local brew_prefix = vim.fn.systemlist("brew --prefix")[1]
- local bashls_script_name = "bash-language-server"
- local bashls_script_path = vim.fn.systemlist("which " .. bashls_script_name)[1]
- local bashls_cmd = { brew_prefix .. "/opt/node@16/bin/node", bashls_script_path, "start" }
- opts.servers.bashls = { cmd = bashls_cmd }
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/c.lua b/public/nvim/.nvim/lua/plugins/lang/c.lua
deleted file mode 100644
index 5b54a9d..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/c.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-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,
- },
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- opts.servers.clangd = {}
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/dockerfile.lua b/public/nvim/.nvim/lua/plugins/lang/dockerfile.lua
deleted file mode 100644
index ca3ccc2..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/dockerfile.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-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
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.diagnostics.hadolint,
- })
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/go.lua b/public/nvim/.nvim/lua/plugins/lang/go.lua
deleted file mode 100644
index 7e7fa03..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/go.lua
+++ /dev/null
@@ -1,65 +0,0 @@
-return {
- {
- "fatih/vim-go",
- init = function()
- vim.g.go_fmt_command = "gofumpt"
- end,
- ft = { "go" },
- },
-
- {
- "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
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.diagnostics.golangci_lint,
- null_ls.builtins.formatting.gofumpt, -- Just here because gopls integrated gofumpt doesn't work
- })
- end
- end,
- },
-
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- opts.servers.gopls = {
- -- Because integrated gofumpt doesn't work
- -- I disable formatting for gopls
- -- Formatting is handled with gofumpt by:
- -- - null-ls on format request
- -- - vim-go on save
- on_attach = function(client, _)
- client.server_capabilities.documentFormattingProvider = false
- client.server_capabilities.documentRangeFormattingProvider = false
- end,
- cmd = { "gopls", "-remote=auto", "serve" }, -- Shared with vim-go's gopls instance
- settings = {
- gopls = {
- buildFlags = { "-tags=integration,unit" }, -- To make packages with those build flags actually work with the LSP
- semanticTokens = false,
- gofumpt = true, -- gofumpt formatting, doesn't work
- },
- },
- }
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/groovy.lua b/public/nvim/.nvim/lua/plugins/lang/groovy.lua
deleted file mode 100644
index 1ab404d..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/groovy.lua
+++ /dev/null
@@ -1,38 +0,0 @@
-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
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.diagnostics.npm_groovy_lint,
- null_ls.builtins.formatting.npm_groovy_lint,
- })
- end
- end,
- },
-
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- local groovyls_path = "/Users/christian.segundo/git/groovy-language-server"
- local groovyls_app_path = "build/libs/app-all.jar"
- local groovyls_cmd = { "java", "-jar", groovyls_path .. "/" .. groovyls_app_path }
- opts.servers.groovyls = { cmd = groovyls_cmd }
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/helm.lua b/public/nvim/.nvim/lua/plugins/lang/helm.lua
deleted file mode 100644
index 6b303ec..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/helm.lua
+++ /dev/null
@@ -1,6 +0,0 @@
-return {
- {
- "towolf/vim-helm",
- ft = { "yaml" },
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/jq.lua b/public/nvim/.nvim/lua/plugins/lang/jq.lua
deleted file mode 100644
index a9a41c6..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/jq.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-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
- opts.servers = opts.servers or {}
- opts.servers.jqls = {}
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/json.lua b/public/nvim/.nvim/lua/plugins/lang/json.lua
deleted file mode 100644
index 1d2d073..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/json.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-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
- opts.servers = opts.servers or {}
- opts.servers.jsonls = {}
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/jsonnet.lua b/public/nvim/.nvim/lua/plugins/lang/jsonnet.lua
deleted file mode 100644
index dff2e4b..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/jsonnet.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-return {
- {
- "google/vim-jsonnet",
- ft = { "jsonnet" },
- },
-
- {
- "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
- opts.servers = opts.servers or {}
- opts.servers.jsonnet_ls = {}
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/ledger.lua b/public/nvim/.nvim/lua/plugins/lang/ledger.lua
deleted file mode 100644
index bc265e1..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/ledger.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-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" },
- },
- -- TODO
- --{
- --"hrsh7th/nvim-cmp",
- --opts = function(_, opts)
- --if type(opts) == "table" then
- --opts.sources = opts.sources or {}
- --vim.list_extend(opts.sources, { name = "ledger" })
- --end
- --end,
- --},
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/lua.lua b/public/nvim/.nvim/lua/plugins/lang/lua.lua
deleted file mode 100644
index 5e08867..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/lua.lua
+++ /dev/null
@@ -1,46 +0,0 @@
-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)
- if type(opts) == "table" then
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.diagnostics.selene,
- null_ls.builtins.formatting.stylua,
- })
- end
- end,
- },
-
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- opts.on_attach = opts.on_attach or {}
- opts.servers.lua_ls = {
- on_attach = function(client, _)
- client.server_capabilities.documentFormattingProvider = false
- client.server_capabilities.documentRangeFormattingProvider = false
- end,
- }
- end
- end,
- dependencies = {
- "folke/neodev.nvim",
- },
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/markdown.lua b/public/nvim/.nvim/lua/plugins/lang/markdown.lua
deleted file mode 100644
index cfa6fd2..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/markdown.lua
+++ /dev/null
@@ -1,76 +0,0 @@
-return {
- {
- "iamcco/markdown-preview.nvim",
- build = "cd app && npm install",
- init = function()
- vim.g.mkdp_filetypes = { "markdown" }
- end,
- ft = { "markdown" },
- },
-
- {
- "mzlogin/vim-markdown-toc",
- init = function()
- vim.g.vmt_auto_update_on_save = 0
- vim.g.vmt_dont_insert_fence = 1
- end,
- ft = { "markdown" },
- },
-
- {
- "dbridges/vim-markdown-runner",
- cmd = { "MarkdownRunner", "MarkdownRunnerInsert" },
- config = function()
- vim.api.nvim_set_keymap("n", "<leader>r", "<cmd>MarkdownRunner<CR>", { noremap = false, silent = true })
- vim.api.nvim_set_keymap("n", "<leader>R", "<cmd>MarkdownRunnerInsert<CR>", { noremap = false, silent = true })
- end,
- ft = { "markdown" },
- },
-
- {
- "preservim/vim-markdown",
- dependencies = { "godlygeek/tabular" },
- init = function()
- -- All concealing is handled by Treesitter
- vim.g.vim_markdown_conceal = 0
- vim.g.vim_markdown_conceal_code_blocks = 0
- vim.g.vim_markdown_frontmatter = 0
- vim.g.vim_markdown_strikethrough = 0
-
- vim.g.vim_markdown_auto_insert_bullets = 0
- vim.g.vim_markdown_new_list_item_indent = 0
- vim.g.vim_markdown_folding_disabled = 1
- end,
- ft = { "markdown" },
- },
-
- {
- "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, {
- "markdown_inline",
- "markdown",
- })
- end
- end,
- },
-
- {
- "jose-elias-alvarez/null-ls.nvim",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.diagnostics.markdownlint_cli2,
- null_ls.builtins.diagnostics.vale,
- null_ls.builtins.formatting.prettierd.with({
- filetypes = { "markdown" },
- }),
- })
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/perl.lua b/public/nvim/.nvim/lua/plugins/lang/perl.lua
deleted file mode 100644
index 6ec7220..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/perl.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-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
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- -- perlls is supposed to use perltidy for formatting, but it doesn't
- -- work not sure why.
- null_ls.builtins.formatting.perltidy,
- })
- end
- end,
- },
-
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- opts.servers.perlls = {}
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/promql.lua b/public/nvim/.nvim/lua/plugins/lang/promql.lua
deleted file mode 100644
index 5589b89..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/promql.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-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.nvim",
- url = "https://git.segundo.io/nvim/promqlfmt.nvim",
- --dir = "/Users/christian.segundo/git/promql.nvim",
- --dev = true,
- cmd = { "Promqlfmt" },
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/swift.lua b/public/nvim/.nvim/lua/plugins/lang/swift.lua
deleted file mode 100644
index d7f6d33..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/swift.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-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
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.diagnostics.swiftlint,
- null_ls.builtins.formatting.swiftformat,
- })
- end
- end,
- },
-
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- opts.servers.sourcekit = {}
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/terraform.lua b/public/nvim/.nvim/lua/plugins/lang/terraform.lua
deleted file mode 100644
index e7ccff4..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/terraform.lua
+++ /dev/null
@@ -1,40 +0,0 @@
-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
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.diagnostics.tfsec,
- null_ls.builtins.formatting.terraform_fmt.with({
- extra_filetypes = { "hcl" },
- }),
- })
- end
- end,
- },
-
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- opts.servers.terraformls = {}
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/typescript.lua b/public/nvim/.nvim/lua/plugins/lang/typescript.lua
deleted file mode 100644
index f21c876..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/typescript.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-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, { "typescript", "javascript" })
- end
- end,
- },
-
- {
- "jose-elias-alvarez/null-ls.nvim",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.code_actions.eslint_d,
- })
- end
- end,
- },
-
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- opts.servers.tsserver = {}
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/yaml.lua b/public/nvim/.nvim/lua/plugins/lang/yaml.lua
deleted file mode 100644
index 83af09e..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/yaml.lua
+++ /dev/null
@@ -1,59 +0,0 @@
-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
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.diagnostics.yamllint,
- })
- end
- end,
- },
-
- {
- --"someone-stole-my-name/yaml-companion.nvim",
- dev = true,
- dir = "/Users/christian.segundo/git/nvim_plugins/yaml-companion.nvim",
- dependencies = {
- "nvim-lua/plenary.nvim",
- "nvim-telescope/telescope.nvim",
- },
- init = function()
- require("telescope").load_extension("yaml_schema")
- end,
- ft = { "yaml" },
- },
-
- {
- "neovim/nvim-lspconfig",
- --dependencies = { "someone-stole-my-name/yaml-companion.nvim" },
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- opts.servers.yamlls = require("yaml-companion").setup()
- end
- end,
- },
-
- {
- "rafamadriz/friendly-snippets",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.include = opts.include or {}
- vim.list_extend(opts.include, { "yaml" })
- end
- end,
- },
-}
diff --git a/public/nvim/.nvim/lua/plugins/lang/zig.lua b/public/nvim/.nvim/lua/plugins/lang/zig.lua
deleted file mode 100644
index 1970797..0000000
--- a/public/nvim/.nvim/lua/plugins/lang/zig.lua
+++ /dev/null
@@ -1,40 +0,0 @@
-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
- opts.sources = opts.sources or {}
- local null_ls = require("null-ls")
- vim.list_extend(opts.sources, {
- null_ls.builtins.formatting.zigfmt,
- })
- end
- end,
- },
-
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- if type(opts) == "table" then
- opts.servers = opts.servers or {}
- opts.on_attach = opts.on_attach or {}
- opts.servers.zls = {
- on_attach = function(client, _)
- client.server_capabilities.documentFormattingProvider = false
- client.server_capabilities.documentRangeFormattingProvider = false
- end,
- }
- end
- end,
- },
-}