mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nvim): replace custom text object function with plugin
This commit is contained in:
@@ -60,21 +60,6 @@ function Select_indent(around)
|
||||
end
|
||||
end
|
||||
|
||||
-- Indent Text Object
|
||||
function Indent_text_objects()
|
||||
for _, mode in ipairs({ "x", "o" }) do
|
||||
keymap(mode, "ii", ":<c-u>lua Select_indent()<cr>", {
|
||||
noremap = true,
|
||||
silent = true,
|
||||
})
|
||||
keymap(mode, "ai", ":<c-u>lua Select_indent(true)<cr>", {
|
||||
silent = true,
|
||||
noremap = true,
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
basic_text_objects = Basic_text_objects,
|
||||
indent_text_objects = Indent_text_objects,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user