From a7fc11fcde93dcc54baf0e0786c2250bc536138f Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sat, 13 Aug 2022 11:16:38 -0700 Subject: [PATCH] temp remove treesitter from nvim --- programs/neovim/init.lua | 160 +++++++++++++++++++-------------------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/programs/neovim/init.lua b/programs/neovim/init.lua index 64edf1c..744d577 100644 --- a/programs/neovim/init.lua +++ b/programs/neovim/init.lua @@ -7,9 +7,9 @@ local function load_plugins() require('packer').startup(function() use 'wbthomason/packer.nvim' -- Package manager use 'neovim/nvim-lspconfig' -- Collection of configurations for built-in LSP client - use 'nvim-treesitter/nvim-treesitter' - use 'nvim-treesitter/nvim-treesitter-textobjects' - use 'nvim-treesitter/playground' + -- use 'nvim-treesitter/nvim-treesitter' + -- use 'nvim-treesitter/nvim-treesitter-textobjects' + -- use 'nvim-treesitter/playground' use 'folke/which-key.nvim' use 'folke/lua-dev.nvim' use 'folke/tokyonight.nvim' -- Theme @@ -129,83 +129,83 @@ _G.load_config = function() require('nvim-tree').setup() -- Treesitter - require('nvim-treesitter.configs').setup { - query_linter = { - enable = true, - use_virtual_text = true, - lint_events = { 'BufWrite', 'CursorHold' }, - }, - ensure_installed = 'maintained', - highlight = { enable = true }, - incremental_selection = { - enable = true, - keymaps = { - init_selection = 'gnn', - node_incremental = 'grn', - scope_incremental = 'grc', - node_decremental = 'grm', - }, - }, - indent = { - enable = true, - }, - textobjects = { - select = { - enable = true, - lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim - keymaps = { - -- You can use the capture groups defined in textobjects.scm - ['af'] = '@function.outer', - ['if'] = '@function.inner', - ['ac'] = '@class.outer', - ['ic'] = '@class.inner', - }, - }, - move = { - enable = true, - set_jumps = true, -- whether to set jumps in the jumplist - goto_next_start = { - [']m'] = '@function.outer', - [']]'] = '@class.outer', - }, - goto_next_end = { - [']M'] = '@function.outer', - [']['] = '@class.outer', - }, - goto_previous_start = { - ['[m'] = '@function.outer', - ['[['] = '@class.outer', - }, - goto_previous_end = { - ['[M'] = '@function.outer', - ['[]'] = '@class.outer', - }, - }, - }, - playground = { - enable = true, - disable = {}, - updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code - persist_queries = false, -- Whether the query persists across vim sessions - keybindings = { - toggle_query_editor = 'o', - toggle_hl_groups = 'i', - toggle_injected_languages = 't', - toggle_anonymous_nodes = 'a', - toggle_language_display = 'I', - focus_language = 'f', - unfocus_language = 'F', - update = 'R', - goto_node = '', - show_help = '?', - }, - }, - rainbow = { - enable = true, - extended_mode = true, - max_file_lines = 1000, - }, - } + -- require('nvim-treesitter.configs').setup { + -- query_linter = { + -- enable = true, + -- use_virtual_text = true, + -- lint_events = { 'BufWrite', 'CursorHold' }, + -- }, + -- ensure_installed = 'maintained', + -- highlight = { enable = true }, + -- incremental_selection = { + -- enable = true, + -- keymaps = { + -- init_selection = 'gnn', + -- node_incremental = 'grn', + -- scope_incremental = 'grc', + -- node_decremental = 'grm', + -- }, + -- }, + -- indent = { + -- enable = true, + -- }, + -- textobjects = { + -- select = { + -- enable = true, + -- lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim + -- keymaps = { + -- -- You can use the capture groups defined in textobjects.scm + -- ['af'] = '@function.outer', + -- ['if'] = '@function.inner', + -- ['ac'] = '@class.outer', + -- ['ic'] = '@class.inner', + -- }, + -- }, + -- move = { + -- enable = true, + -- set_jumps = true, -- whether to set jumps in the jumplist + -- goto_next_start = { + -- [']m'] = '@function.outer', + -- [']]'] = '@class.outer', + -- }, + -- goto_next_end = { + -- [']M'] = '@function.outer', + -- [']['] = '@class.outer', + -- }, + -- goto_previous_start = { + -- ['[m'] = '@function.outer', + -- ['[['] = '@class.outer', + -- }, + -- goto_previous_end = { + -- ['[M'] = '@function.outer', + -- ['[]'] = '@class.outer', + -- }, + -- }, + -- }, + -- playground = { + -- enable = true, + -- disable = {}, + -- updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code + -- persist_queries = false, -- Whether the query persists across vim sessions + -- keybindings = { + -- toggle_query_editor = 'o', + -- toggle_hl_groups = 'i', + -- toggle_injected_languages = 't', + -- toggle_anonymous_nodes = 'a', + -- toggle_language_display = 'I', + -- focus_language = 'f', + -- unfocus_language = 'F', + -- update = 'R', + -- goto_node = '', + -- show_help = '?', + -- }, + -- }, + -- rainbow = { + -- enable = true, + -- extended_mode = true, + -- max_file_lines = 1000, + -- }, + -- } -- neogit require('neogit').setup {