mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-04-23 16:00:11 +00:00
chore: update Lazy, CodeCompanion, Treesitter, & Telescope nvim plugins
This commit is contained in:
parent
e3b1f60711
commit
6f79e6abe9
2 changed files with 19 additions and 31 deletions
|
|
@ -4,8 +4,9 @@ return {
|
|||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
lazy = false,
|
||||
init = function()
|
||||
local langs = {
|
||||
"c",
|
||||
"lua",
|
||||
"vim",
|
||||
|
|
@ -27,32 +28,19 @@ return {
|
|||
"terraform",
|
||||
"yaml",
|
||||
"json",
|
||||
},
|
||||
auto_install = false,
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "gnn",
|
||||
node_incremental = "grn",
|
||||
scope_incremental = "grc",
|
||||
node_decremental = "grm",
|
||||
},
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
init = function()
|
||||
}
|
||||
require("nvim-treesitter").install(langs)
|
||||
|
||||
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt.foldenable = false
|
||||
end,
|
||||
config = function(plugin, opts)
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = langs,
|
||||
callback = function()
|
||||
vim.treesitter.start()
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue