diff options
author | Christian Segundo | 2025-01-17 23:08:34 +0100 |
---|---|---|
committer | Christian Segundo | 2025-01-17 23:08:34 +0100 |
commit | d38e3d5ea7d080ad6ce285b8dffd70623a1566bb (patch) | |
tree | 7018c2ab6bab49ab35d4d669a95f03bc38422684 | |
parent | 3d6e79fa91e411d04076787e89a4584f62f1fd27 (diff) | |
download | config-d38e3d5ea7d080ad6ce285b8dffd70623a1566bb.tar.gz |
remove all references to treesitter
-rw-r--r-- | ftplugin/zig.vim | 1 | ||||
-rw-r--r-- | lua/plugins/core/treesitter.lua | 55 | ||||
-rw-r--r-- | lua/plugins/lang/ansible.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/bash.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/c.lua | 9 | ||||
-rw-r--r-- | lua/plugins/lang/dockerfile.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/go.lua | 14 | ||||
-rw-r--r-- | lua/plugins/lang/groovy.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/jq.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/json.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/jsonnet.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/ledger.lua | 9 | ||||
-rw-r--r-- | lua/plugins/lang/lua.lua | 11 | ||||
-rw-r--r-- | lua/plugins/lang/nix.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/perl.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/promql.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/python.lua | 9 | ||||
-rw-r--r-- | lua/plugins/lang/swift.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/terraform.lua | 13 | ||||
-rw-r--r-- | lua/plugins/lang/yaml.lua | 10 | ||||
-rw-r--r-- | lua/plugins/lang/zig.lua | 10 | ||||
-rw-r--r-- | queries/markdown/highlights.scm | 94 |
22 files changed, 0 insertions, 345 deletions
diff --git a/ftplugin/zig.vim b/ftplugin/zig.vim deleted file mode 100644 index d20fab2..0000000 --- a/ftplugin/zig.vim +++ /dev/null @@ -1 +0,0 @@ -setlocal foldmethod=expr foldexpr=nvim_treesitter#foldexpr() 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 diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm deleted file mode 100644 index 5563428..0000000 --- a/queries/markdown/highlights.scm +++ /dev/null @@ -1,94 +0,0 @@ -;From MDeiml/tree-sitter-markdown & Helix -;;same as the one shipped in nvim-treesitter without concealing codeblocks -(setext_heading (paragraph) @text.title.1 (setext_h1_underline) @text.title.1.marker) -(setext_heading (paragraph) @text.title.2 (setext_h2_underline) @text.title.2.marker) - -(atx_heading (atx_h1_marker) @text.title.1.marker (inline) @text.title.1) -(atx_heading (atx_h2_marker) @text.title.2.marker (inline) @text.title.2) -(atx_heading (atx_h3_marker) @text.title.3.marker (inline) @text.title.3) -(atx_heading (atx_h4_marker) @text.title.4.marker (inline) @text.title.4) -(atx_heading (atx_h5_marker) @text.title.5.marker (inline) @text.title.5) -(atx_heading (atx_h6_marker) @text.title.6.marker (inline) @text.title.6) - -(link_title) @text.literal -(indented_code_block) @text.literal.block -((fenced_code_block) @text.literal.block (#set! "priority" 90)) - -(info_string) @label - -(pipe_table_header (pipe_table_cell) @text.title) - -(pipe_table_header "|" @punctuation.special) -(pipe_table_row "|" @punctuation.special) -(pipe_table_delimiter_row "|" @punctuation.special) -(pipe_table_delimiter_cell) @punctuation.special - -[ - (fenced_code_block_delimiter) -] @punctuation.delimiter - -;; Conceal backticks -;(fenced_code_block - ;(fenced_code_block_delimiter) @conceal - ;(#set! conceal "")) -;(fenced_code_block - ;(info_string (language) @conceal - ;(#set! conceal ""))) - -; NOTE: The following has been commented out due to issues with spaces in the -; list marker nodes generated by the parser. If those spaces ever get captured -; by a different node (e.g. block_continuation) we can safely readd these -; conceals. -; ;; Conceal bullet points -; ([(list_marker_plus) (list_marker_star)] -; @punctuation.special -; (#offset! @punctuation.special 0 0 0 -1) -; (#set! conceal "•")) -; ([(list_marker_plus) (list_marker_star)] -; @punctuation.special -; (#any-of? @punctuation.special "+" "*") -; (#set! conceal "•")) -; ((list_marker_minus) -; @punctuation.special -; (#offset! @punctuation.special 0 0 0 -1) -; (#set! conceal "—")) -; ((list_marker_minus) -; @punctuation.special -; (#eq? @punctuation.special "-") -; (#set! conceal "—")) - -(code_fence_content) @none - -[ - (link_destination) -] @text.uri - -[ - (link_label) -] @text.reference - -[ - (list_marker_plus) - (list_marker_minus) - (list_marker_star) - (list_marker_dot) - (list_marker_parenthesis) - (thematic_break) -] @punctuation.special - - -(task_list_marker_unchecked) @text.todo.unchecked -(task_list_marker_checked) @text.todo.checked - -((block_quote) @text.quote (#set! "priority" 90)) - -[ - (block_continuation) - (block_quote_marker) -] @punctuation.special - -[ - (backslash_escape) -] @string.escape - -(inline) @spell |