From 5d01f03eda5dab278a2475e895f0292107d43e88 Mon Sep 17 00:00:00 2001 From: peturparkur Date: Tue, 24 Jun 2025 21:14:56 +0200 Subject: [PATCH] disable treesitter indentation + comments --- init.lua | 1 + lua/kickstart/plugins/treesitter.lua | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 8bf0ebe1..227c077c 100644 --- a/init.lua +++ b/init.lua @@ -217,6 +217,7 @@ local function DockerFileTypeDetectionAutoCommand() end end + -- Hacky way to configure correct filetype for docker-compose LSP -- vim.api.nvim_create_augroup('DockerFileTypeDetection', { clear = true }) vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, { pattern = tbl, diff --git a/lua/kickstart/plugins/treesitter.lua b/lua/kickstart/plugins/treesitter.lua index 636c7107..bbc032a4 100644 --- a/lua/kickstart/plugins/treesitter.lua +++ b/lua/kickstart/plugins/treesitter.lua @@ -12,7 +12,7 @@ return { -- Highlight, edit, and navigate code -- the list of additional_vim_regex_highlighting and disabled languages for indent. additional_vim_regex_highlighting = { 'ruby' }, }, - indent = { enable = true, disable = { 'ruby' } }, + -- indent = { enable = true, disable = { 'ruby' } }, }, config = function(_, opts) -- [[ Configure Treesitter ]] See `:help nvim-treesitter` @@ -30,4 +30,3 @@ return { -- Highlight, edit, and navigate code -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects end, } -