disable treesitter indentation + comments

pull/1705/head
peturparkur 3 months ago
parent dcb979b9c8
commit 5d01f03eda

@ -217,6 +217,7 @@ local function DockerFileTypeDetectionAutoCommand()
end end
end end
-- Hacky way to configure correct filetype for docker-compose LSP
-- vim.api.nvim_create_augroup('DockerFileTypeDetection', { clear = true }) -- vim.api.nvim_create_augroup('DockerFileTypeDetection', { clear = true })
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, { vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = tbl, pattern = tbl,

@ -12,7 +12,7 @@ return { -- Highlight, edit, and navigate code
-- the list of additional_vim_regex_highlighting and disabled languages for indent. -- the list of additional_vim_regex_highlighting and disabled languages for indent.
additional_vim_regex_highlighting = { 'ruby' }, additional_vim_regex_highlighting = { 'ruby' },
}, },
indent = { enable = true, disable = { 'ruby' } }, -- indent = { enable = true, disable = { 'ruby' } },
}, },
config = function(_, opts) config = function(_, opts)
-- [[ Configure Treesitter ]] See `:help nvim-treesitter` -- [[ 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 -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
end, end,
} }

Loading…
Cancel
Save