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:
parent
8ccc95f84e
commit
d9a16ecf09
@ -2,6 +2,8 @@ require("onedark").load()
|
|||||||
|
|
||||||
local indent = 2
|
local indent = 2
|
||||||
|
|
||||||
|
vim.opt.updatetime = 100
|
||||||
|
|
||||||
-- Tabstops
|
-- Tabstops
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
vim.opt.shiftwidth = indent
|
vim.opt.shiftwidth = indent
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
return {
|
return function()
|
||||||
|
require("nvim-treesitter.configs").setup({
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
context_commentstring = { enable = true, enable_autocmd = false },
|
context_commentstring = { enable = true },
|
||||||
|
auto_install = true,
|
||||||
|
sync_install = false,
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
"bash",
|
||||||
"c",
|
"c",
|
||||||
@ -9,7 +12,6 @@ return {
|
|||||||
"dockerfile",
|
"dockerfile",
|
||||||
"eex",
|
"eex",
|
||||||
"elixir",
|
"elixir",
|
||||||
"help",
|
|
||||||
"html",
|
"html",
|
||||||
"javascript",
|
"javascript",
|
||||||
"json",
|
"json",
|
||||||
@ -33,4 +35,5 @@ return {
|
|||||||
"vue",
|
"vue",
|
||||||
"yaml",
|
"yaml",
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
end
|
||||||
|
|||||||
@ -1,11 +1,8 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
|
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
@ -30,9 +27,8 @@ return {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
},
|
},
|
||||||
|
config = require("config.plugins.tree-sitter"),
|
||||||
---@type TSConfig
|
|
||||||
opts = require("config.plugins.tree-sitter"),
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user