Skip to content

Commit

Permalink
feat(motion): add tabout.nvim (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter authored Jan 16, 2024
1 parent bfa56fd commit 51d1c0c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/motion/tabout-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# tabout.nvim

tabout plugin for neovim

**Repository:** <https://github.com/abecodes/tabout.nvim>
23 changes: 23 additions & 0 deletions lua/astrocommunity/motion/tabout-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
return {
"abecodes/tabout.nvim",
event = "InsertEnter",
dependencies = {
"nvim-treesitter/nvim-treesitter",
{
"hrsh7th/nvim-cmp",
opts = function(_, opts)
local cmp, luasnip = require "cmp", require "luasnip"
opts.mapping["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then
luasnip.expand_or_jump()
else
fallback()
end
end, { "i", "s" })
end,
},
},
opts = {},
}

0 comments on commit 51d1c0c

Please sign in to comment.