diff options
author | Squibid <me@zacharyscheiman.com> | 2023-11-07 23:29:02 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-11-07 23:29:02 -0500 |
commit | ebf9d2d1c4682068f5116f7efc1568ce5adf4f1b (patch) | |
tree | 72ac6ca362d4a8218a87593047407e70721a7671 | |
parent | e0ee8e36113c7cd8c344415b1af5b2a58de3cdb3 (diff) | |
download | nvim-ebf9d2d1c4682068f5116f7efc1568ce5adf4f1b.tar.gz nvim-ebf9d2d1c4682068f5116f7efc1568ce5adf4f1b.tar.bz2 nvim-ebf9d2d1c4682068f5116f7efc1568ce5adf4f1b.zip |
replace intellitab with auto-indent
-rw-r--r-- | after/plugin/auto-indent.lua | 10 | ||||
-rw-r--r-- | after/plugin/cmp.lua | 2 | ||||
-rw-r--r-- | lua/core/plugins.lua | 2 |
3 files changed, 12 insertions, 2 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) diff --git a/lua/core/plugins.lua b/lua/core/plugins.lua index 05a5eee..db20075 100644 --- a/lua/core/plugins.lua +++ b/lua/core/plugins.lua @@ -35,7 +35,7 @@ require 'dep' { url = 'https://git.squi.bid/git-yodel' }, { 'chentoast/marks.nvim' }, -- marks in gutter - { 'pta2002/intellitab.nvim' }, -- better tabbing into indents + { 'vidocqh/auto-indent.nvim' }, -- better tabbing into indents { 'mbbill/undotree' }, -- careful this one is written in vimscript { 'dhruvasagar/vim-table-mode' }, -- same with this one { 'windwp/nvim-autopairs' }, |