1
0
Fork 0

treesitter fixes

This commit is contained in:
Luca Bilke 2024-03-10 14:51:40 +01:00
parent 2628a09534
commit e068d74848
5 changed files with 40 additions and 31 deletions

View file

@ -0,0 +1,13 @@
local M = {}
M.ensure = {
treesitter = {
"bash",
"c",
"dockerfile",
"git_config",
"git_ignore",
}
}
return M

View file

@ -112,7 +112,7 @@ M.opts = function()
},
}
dashboard.section.header.val = banners[1]
dashboard.section.header.val = banners[4]
dashboard.section.buttons.val = {
dashboard.button("n", icons.File .. " New file", "<Cmd>ene<CR>"),

View file

@ -4,9 +4,7 @@ M.main = "ibl"
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.dependencies = {
"nvim-treesitter",
}
M.dependencies = { "nvim-treesitter" }
M.opts = {
indent = {
@ -16,8 +14,8 @@ M.opts = {
scope = {
char = "",
enabled = true,
show_start = true,
show_end = true,
show_start = false,
show_end = false,
},
exclude = {
filetypes = {

View file

@ -1,9 +1,11 @@
return {
{ "nvim-lua/plenary.nvim", lazy = true },
{ "kyazdani42/nvim-web-devicons", lazy = true },
{ "zk-org/zk-nvim", opts = { picker = "telescope" }, main = "zk" },
{ "NMAC427/guess-indent.nvim" },
{ "JoosepAlviste/nvim-ts-context-commentstring" },
{ "nvim-lua/plenary.nvim", lazy = true },
{ "kyazdani42/nvim-web-devicons", lazy = true },
{ "zk-org/zk-nvim", opts = { picker = "telescope" }, main = "zk" },
{ "NMAC427/guess-indent.nvim", config = true },
{ "JoosepAlviste/nvim-ts-context-commentstring", dependencies = { "nvim-treesitter" } },
{ "nvim-treesitter/nvim-treesitter-textobjects", dependencies = { "nvim-treesitter" } },
{ "windwp/nvim-ts-autotag" },
require("plugins.misc.alpha"),
require("plugins.misc.autopairs"),
require("plugins.misc.bufferline"),

View file

@ -1,29 +1,24 @@
local M = { "nvim-treesitter/nvim-treesitter" }
M.dependencies = {
"nvim-treesitter/nvim-treesitter-textobjects",
"windwp/nvim-ts-autotag",
}
M.event = { "BufReadPost", "BufNewFile", "BufNew" }
M.build = ":TSUpdate"
-- M.cmd = {
-- "TSBufDisable",
-- "TSBufEnable",
-- "TSBufToggle",
-- "TSDisable",
-- "TSEnable",
-- "TSToggle",
-- "TSInstall",
-- "TSInstallInfo",
-- "TSInstallSync",
-- "TSModuleInfo",
-- "TSUninstall",
-- "TSUpdate",
-- "TSUpdateSync",
-- }
M.cmd = {
"TSBufDisable",
"TSBufEnable",
"TSBufToggle",
"TSDisable",
"TSEnable",
"TSToggle",
"TSInstall",
"TSInstallInfo",
"TSInstallSync",
"TSModuleInfo",
"TSUninstall",
"TSUpdate",
"TSUpdateSync",
}
M.init = function(plugin)
require("lazy.core.loader").add_to_rtp(plugin)
@ -31,6 +26,7 @@ M.init = function(plugin)
end
M.opts = {
ensure_installed = { "lua", "yaml", "json", "bash" },
autotag = { enable = true },
highlight = {
enable = true,