summaryrefslogtreecommitdiffstats
path: root/after/plugin/auto-indent.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/plugin/auto-indent.lua')
-rw-r--r--after/plugin/auto-indent.lua10
1 files changed, 10 insertions, 0 deletions
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
+}