dotfiles

[void/arch] linux dotfiles
git clone git://git.mdnr.space/dotfiles
Log | Files | Refs

commit 89b5a57a8da31eebb265c9f4ffd563a67e34351f
parent b674e2a391c6c657503f5f07f3607cafc9764ef1
Author: mehdi-norouzi <mehdeenoroozi@gmail.com>
Date:   Mon, 11 Sep 2023 11:17:12 +0330

nvim: remove treesitter

Diffstat:
Dnvim/.config/nvim/after/plugin/treesitter-context.lua | 77-----------------------------------------------------------------------------
Dnvim/.config/nvim/after/plugin/treesitter.lua | 33---------------------------------
2 files changed, 0 insertions(+), 110 deletions(-)

diff --git a/nvim/.config/nvim/after/plugin/treesitter-context.lua b/nvim/.config/nvim/after/plugin/treesitter-context.lua @@ -1,77 +0,0 @@ -require'treesitter-context'.setup{ - enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) - max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. - trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' - min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit. - patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries. - -- For all filetypes - -- Note that setting an entry here replaces all other patterns for this entry. - -- By setting the 'default' entry below, you can control which nodes you want to - -- appear in the context window. - default = { - 'class', - 'function', - 'method', - 'for', - 'while', - 'if', - 'switch', - 'case', - }, - -- Patterns for specific filetypes - -- If a pattern is missing, *open a PR* so everyone can benefit. - tex = { - 'chapter', - 'section', - 'subsection', - 'subsubsection', - }, - rust = { - 'impl_item', - 'struct', - 'enum', - }, - scala = { - 'object_definition', - }, - vhdl = { - 'process_statement', - 'architecture_body', - 'entity_declaration', - }, - markdown = { - 'section', - }, - elixir = { - 'anonymous_function', - 'arguments', - 'block', - 'do_block', - 'list', - 'map', - 'tuple', - 'quoted_content', - }, - json = { - 'pair', - }, - yaml = { - 'block_mapping_pair', - }, - }, - exact_patterns = { - -- Example for a specific filetype with Lua patterns - -- Treat patterns.rust as a Lua pattern (i.e "^impl_item$" will - -- exactly match "impl_item" only) - -- rust = true, - }, - - -- [!] The options below are exposed but shouldn't require your attention, - -- you can safely ignore them. - - zindex = 20, -- The Z-index of the context window - mode = 'cursor', -- Line used to calculate context. Choices: 'cursor', 'topline' - -- Separator between context and content. Should be a single character string, like '-'. - -- When separator is set, the context will only show up when there are at least 2 lines above cursorline. - separator = nil, -} diff --git a/nvim/.config/nvim/after/plugin/treesitter.lua b/nvim/.config/nvim/after/plugin/treesitter.lua @@ -1,33 +0,0 @@ -require'nvim-treesitter.configs'.setup { - -- A list of parser names, or "all" - ensure_installed = { "help", "c", "lua", "rust", "markdown", "comment" }, - - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, - - -- Automatically install missing parsers when entering buffer - auto_install = true, - - -- List of parsers to ignore installing (for "all") - ignore_install = { "javascript" }, - - ---- If you need to change the installation directory of the parsers (see -> Advanced Setup) - -- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")! - - highlight = { - -- `false` will disable the whole extension - enable = true, - - -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to - -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is - -- the name of the parser) - -- list of language that will be disabled - -- disable = { "c", "rust" }, - - -- Setting this to true will run `:h syntax` and tree-sitter at the same time. - -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). - -- Using this option may slow down your editor, and you may see some duplicate highlights. - -- Instead of true it can also be a list of languages - additional_vim_regex_highlighting = false, - }, -}