diff options
author | Josh Rahm <rahm@google.com> | 2024-03-09 19:06:09 +0000 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2024-03-09 19:06:09 +0000 |
commit | fdb2f5d6d251f12f58e66d74d35aef2cdf3d5ad0 (patch) | |
tree | 1bc465328c9e323262a179d673fb5f26aadba689 /lua | |
parent | 737c49be10204e808c0129d93f8533b424ae4b87 (diff) | |
download | config.vim-fdb2f5d6d251f12f58e66d74d35aef2cdf3d5ad0.tar.gz config.vim-fdb2f5d6d251f12f58e66d74d35aef2cdf3d5ad0.tar.bz2 config.vim-fdb2f5d6d251f12f58e66d74d35aef2cdf3d5ad0.zip |
Yet more ricing.
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lsp.lua | 1 | ||||
-rw-r--r-- | lua/treesitter-textobjects-setup.lua | 4 | ||||
-rw-r--r-- | lua/treesitter.lua | 8 |
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 |