Remove slow tree sitter stuff.

This commit is contained in:
Gabriel Ebner 2021-10-28 12:08:05 +02:00
parent df438dd236
commit 6b63a64749

60
vimrc

@ -107,9 +107,9 @@ if has('nvim-0.5')
Plug 'nvim-lua/plenary.nvim' Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'nvim-treesitter/nvim-treesitter-textobjects' " Plug 'nvim-treesitter/nvim-treesitter-textobjects'
Plug 'nvim-treesitter/playground' " Plug 'nvim-treesitter/playground'
Plug 'hrsh7th/nvim-compe' Plug 'hrsh7th/nvim-compe'
if isdirectory(expand('~/lean.nvim')) if isdirectory(expand('~/lean.nvim'))
@ -225,33 +225,33 @@ lua <<EOF
}, },
} }
require('nvim-treesitter.configs').setup{ -- require('nvim-treesitter.configs').setup{
-- playground = { -- -- playground = {
-- enable = true, -- -- enable = true,
-- disable = {}, -- -- disable = {},
-- updatetime = 25, -- -- updatetime = 25,
-- }, -- -- },
-- query_linter = { -- -- query_linter = {
-- enable = true, -- -- enable = true,
-- use_virtual_text = true, -- -- use_virtual_text = true,
-- lint_events = {"BufWrite", "CursorHold"}, -- -- lint_events = {"BufWrite", "CursorHold"},
-- }, -- -- },
highlight = { enable = true }, -- highlight = { enable = true },
indent = { enable = true }, -- indent = { enable = true },
textobjects = { -- textobjects = {
select = { -- select = {
enable = true, -- enable = true,
keymaps = { -- keymaps = {
["af"] = "@function.outer", -- ["af"] = "@function.outer",
["if"] = "@function.inner", -- ["if"] = "@function.inner",
["ac"] = "@class.outer", -- ["ac"] = "@class.outer",
["ic"] = "@class.inner", -- ["ic"] = "@class.inner",
["aa"] = "@parameter.outer", -- ["aa"] = "@parameter.outer",
["ia"] = "@parameter.inner", -- ["ia"] = "@parameter.inner",
}, -- },
}, -- },
}, -- },
} -- }
require'compe'.setup { require'compe'.setup {
enabled = true; enabled = true;