summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lsp.lua1
-rw-r--r--lua/treesitter-textobjects-setup.lua4
-rw-r--r--lua/treesitter.lua8
3 files changed, 7 insertions, 6 deletions
diff --git a/lua/lsp.lua b/lua/lsp.lua
index 4be6287..9332795 100644
--- a/lua/lsp.lua
+++ b/lua/lsp.lua
@@ -10,6 +10,7 @@ nvim_lsp.rust_analyzer.setup {}
nvim_lsp.vimls.setup {}
nvim_lsp.zls.setup {}
nvim_lsp.ocamllsp.setup {}
+nvim_lsp.verible.setup {}
nvim_lsp.hls.setup {
settings = {
haskell = {
diff --git a/lua/treesitter-textobjects-setup.lua b/lua/treesitter-textobjects-setup.lua
index f58e5bd..4296857 100644
--- a/lua/treesitter-textobjects-setup.lua
+++ b/lua/treesitter-textobjects-setup.lua
@@ -12,14 +12,14 @@ require'nvim-treesitter.configs'.setup {
["im"] = "@function.inner",
["af"] = "@function.outer",
["if"] = "@function.inner",
- ["ac"] = "@class.outer",
+ ["aC"] = "@class.outer",
["aa"] = "@parameter.outer",
["ia"] = "@parameter.inner",
["iq"] = "@block.inner",
["aq"] = "@block.outer",
-- You can optionally set descriptions to the mappings (used in the desc parameter of
-- nvim_buf_set_keymap) which plugins like which-key display
- ["ic"] = { query = "@class.inner", desc = "Select inner part of a class region" },
+ ["iC"] = { query = "@class.inner", desc = "Select inner part of a class region" },
},
-- You can choose the select mode (default is charwise 'v')
--
diff --git a/lua/treesitter.lua b/lua/treesitter.lua
index 0a44cc7..e10e7c6 100644
--- a/lua/treesitter.lua
+++ b/lua/treesitter.lua
@@ -1,6 +1,6 @@
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the four listed parsers should always be installed)
- ensure_installed = { "all" },
+ -- ensure_installed = { "all" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
@@ -26,9 +26,9 @@ require'nvim-treesitter.configs'.setup {
-- disable = { "c", "rust" },
-- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files
disable = function(lang, buf)
- if lang == "vim" or lang == "lua" then
- return true
- end
+ -- if lang == "vim" or lang == "lua" then
+ -- return true
+ -- end
local max_filesize = 100 * 1024 -- 100 KB
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
if ok and stats and stats.size > max_filesize then