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
|
elseif neogen.jumpable() then
|
||||||
neogen.jump_next()
|
neogen.jump_next()
|
||||||
else
|
else
|
||||||
require("intellitab").indent()
|
fallback()
|
||||||
end
|
end
|
||||||
end, { "i", "s" }),
|
end, { "i", "s" }),
|
||||||
["<S-Tab>"] = cmp.mapping(function(fallback)
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
@ -35,7 +35,7 @@ require 'dep' {
|
|||||||
url = 'https://git.squi.bid/git-yodel'
|
url = 'https://git.squi.bid/git-yodel'
|
||||||
},
|
},
|
||||||
{ 'chentoast/marks.nvim' }, -- marks in gutter
|
{ '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
|
{ 'mbbill/undotree' }, -- careful this one is written in vimscript
|
||||||
{ 'dhruvasagar/vim-table-mode' }, -- same with this one
|
{ 'dhruvasagar/vim-table-mode' }, -- same with this one
|
||||||
{ 'windwp/nvim-autopairs' },
|
{ 'windwp/nvim-autopairs' },
|
||||||
|
Reference in New Issue
Block a user