fix treesitter config

This commit is contained in:
Zacharias-Brohn
2025-12-23 14:14:22 +01:00
parent 4e79b98122
commit 206336a9a3
5 changed files with 26 additions and 24 deletions
Vendored
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+8 -8
View File
@@ -1,13 +1,13 @@
local autocmd = vim.api.nvim_create_autocmd local autocmd = vim.api.nvim_create_autocmd
autocmd("LspAttach", { -- autocmd("LspAttach", {
callback = function(args) -- callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id) -- local client = vim.lsp.get_client_by_id(args.data.client_id)
if client then -- if client then
vim.lsp.document_color.enable(false, args.buf, { "background" }) -- vim.lsp.document_color.enable(false, args.buf, { "background" })
end -- end
end, -- end,
}) -- })
autocmd("VimLeave", { autocmd("VimLeave", {
command = "set guicursor=a:ver25-Cursor", command = "set guicursor=a:ver25-Cursor",
+16 -13
View File
@@ -1,13 +1,16 @@
require'nvim-treesitter.configs'.setup { local treesitter = require'nvim-treesitter'
ensure_installed = "all",
ignore_install = { "ipkg" }, treesitter.setup {}
sync_install = true,
auto_install = true, vim.api.nvim_create_autocmd('FileType', {
highlight = { callback = function(args)
enable = true, local has_parser = pcall(vim.treesitter.get_parser, args.buf)
additional_vim_regex_highlighting = false,
}, if not has_parser then
indent = { return
enable = true, end
},
} vim.treesitter.start()
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,
})
+2 -3
View File
@@ -1,7 +1,4 @@
return { return {
{
require "plugins.colorschemes",
},
{ {
"nvim-mini/mini.nvim", "nvim-mini/mini.nvim",
version = false, version = false,
@@ -12,6 +9,8 @@ return {
}, },
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
lazy = false,
build = ":TSUpdate",
config = function() config = function()
require "config.treesitter" require "config.treesitter"
end, end,