Updates tmux-sessionator script to use an environment variable for path lookups

This commit is contained in:
2024-03-20 23:18:43 -04:00
parent 0f8e56394d
commit b61004554a
7 changed files with 40 additions and 28 deletions

View File

@@ -110,19 +110,21 @@ return {
behavior = cmp.ConfirmBehavior.Replace,
select = true
},
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
-- elseif luasnip.expandable() then
-- luasnip.expand()
-- elseif luasnip.expand_or_jumpable() then
-- luasnip.expand_or_jump()
elseif has_words_before() then
cmp.complete()
else
fallback()
end
end, {"i", "s"}),
-- Accept ([y]es) the completions.
['<C-y'] = cmp.mapping.confirm { select = true },
-- ["<Tab>"] = cmp.mapping(function(fallback)
-- if cmp.visible() then
-- cmp.select_next_item()
-- -- elseif luasnip.expandable() then
-- -- luasnip.expand()
-- -- elseif luasnip.expand_or_jumpable() then
-- -- luasnip.expand_or_jump()
-- elseif has_words_before() then
-- cmp.complete()
-- else
-- fallback()
-- end
-- end, {"i", "s"}),
["<S-Tab>"] = cmp.mapping(function()
if cmp.visible() then
cmp.select_prev_item()

View File

@@ -0,0 +1,5 @@
return {
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
opts = { }
}

View File

@@ -59,5 +59,6 @@ require("lazy").setup({
"NMAC427/guess-indent.nvim",
opts = { }
},
{ import = 'user.plugin.todo-comments' },
})