diff options
Diffstat (limited to 'after')
-rw-r--r-- | after/plugin/auto-indent.lua | 10 | ||||
-rw-r--r-- | after/plugin/cmp.lua | 2 |
2 files changed, 11 insertions, 1 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 +} diff --git a/after/plugin/cmp.lua b/after/plugin/cmp.lua index 8c7c3a2..d9a83d2 100644 --- a/after/plugin/cmp.lua +++ b/after/plugin/cmp.lua @@ -89,7 +89,7 @@ cmp.setup { elseif neogen.jumpable() then neogen.jump_next() else - require("intellitab").indent() + fallback() end end, { "i", "s" }), ["<S-Tab>"] = cmp.mapping(function(fallback) |