From ebf9d2d1c4682068f5116f7efc1568ce5adf4f1b Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 7 Nov 2023 23:29:02 -0500 Subject: replace intellitab with auto-indent --- after/plugin/auto-indent.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 after/plugin/auto-indent.lua (limited to 'after/plugin/auto-indent.lua') diff --git a/after/plugin/auto-indent.lua b/after/plugin/auto-indent.lua new file mode 100644 index 0000000..fafb0bc --- /dev/null +++ b/after/plugin/auto-indent.lua @@ -0,0 +1,10 @@ +local status_ok, indent = pcall(require, "auto-indent") +if not status_ok then + return +end + +indent.setup { + indentexpr = function(lnum) + return require("nvim-treesitter.indent").get_indent(lnum) + end +} -- cgit v1.2.1