replace intellitab with auto-indent
This commit is contained in:
10
after/plugin/auto-indent.lua
Normal file
10
after/plugin/auto-indent.lua
Normal 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
|
||||
}
|
@ -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)
|
||||
|
@ -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' },
|
||||
|
Reference in New Issue
Block a user