replace intellitab with auto-indent

This commit is contained in:
2023-11-07 23:29:02 -05:00
parent e0ee8e3611
commit ebf9d2d1c4
3 changed files with 12 additions and 2 deletions

View File

@ -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
}

View File

@ -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)

View File

@ -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' },