1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Fix Treesitter config

This commit is contained in:
Daniel Barber 2023-04-25 14:29:52 -05:00 committed by Dan Barber
parent 8ccc95f84e
commit d9a16ecf09
3 changed files with 44 additions and 43 deletions

View File

@ -2,6 +2,8 @@ require("onedark").load()
local indent = 2
vim.opt.updatetime = 100
-- Tabstops
vim.opt.expandtab = true
vim.opt.shiftwidth = indent

View File

@ -1,7 +1,10 @@
return {
return function()
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
indent = { enable = true },
context_commentstring = { enable = true, enable_autocmd = false },
context_commentstring = { enable = true },
auto_install = true,
sync_install = false,
ensure_installed = {
"bash",
"c",
@ -9,7 +12,6 @@ return {
"dockerfile",
"eex",
"elixir",
"help",
"html",
"javascript",
"json",
@ -33,4 +35,5 @@ return {
"vue",
"yaml",
},
}
})
end

View File

@ -1,11 +1,8 @@
return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
event = { "BufReadPost", "BufNewFile" },
dependencies = {
{
"nvim-treesitter/nvim-treesitter-textobjects",
@ -30,9 +27,8 @@ return {
end
end,
},
"JoosepAlviste/nvim-ts-context-commentstring",
},
---@type TSConfig
opts = require("config.plugins.tree-sitter"),
config = require("config.plugins.tree-sitter"),
},
}