From cfb2fed3e767369602cde41d53c5525e260a49d3 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 19 Mar 2024 11:43:36 +0000 Subject: [PATCH] Disable tree-sitter indent on c++ files --- after/ftplugin/cpp.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/after/ftplugin/cpp.lua b/after/ftplugin/cpp.lua index 15e2cfd..5838360 100644 --- a/after/ftplugin/cpp.lua +++ b/after/ftplugin/cpp.lua @@ -1,2 +1,5 @@ vim.opt.commentstring = '//%s' vim.opt.matchpairs:append('<:>') + +-- nvim_treesitter#indent() is buggy so disable it +vim.opt.indentexpr = ''