Fixed tab not working with completion, adds overseer.nvim

This commit is contained in:
Michael Housh
2023-09-28 21:05:06 -04:00
parent a8c4191d96
commit 0e77478075
5 changed files with 27 additions and 19 deletions

View File

@@ -100,26 +100,26 @@ return {
behavior = cmp.ConfirmBehavior.Replace,
select = false
},
-- ["<Tab>"] = cmp.mapping(function(fallback)
-- if cmp.visible() then
-- cmp.select_next_item()
["<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()
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()
-- elseif vim.fn["vsnip#jumpable"](-1) == 1 then
-- feedkey("<Plug>(vsnip-jump-prev)", "")
-- end
-- end, {"i", "s"})
end
end, {"i", "s"})
},
sources = {
{name = "nvim_lsp"},

View File

@@ -12,7 +12,8 @@ return {
"onsails/lspkind-nvim",
"famiu/bufdelete.nvim",
"ray-x/lsp_signature.nvim",
"neovim/nvim-lspconfig"
"neovim/nvim-lspconfig",
"folke/neodev.nvim",
},
opts = {
ensure_installed = {

View File

@@ -19,10 +19,14 @@ require("lazy").setup({
},
{ import = 'user.plugin.cmp' },
{ import = 'user.plugin.diffview' },
{ 'folke/neodev.nvim', opts = {} },
{ import = 'user.plugin.lsp' },
{ import = 'user.plugin.lualine' },
{ import = 'user.plugin.neogit' },
{ import = 'user.plugin.neo-tree' },
{ 'stevearc/overseer.nvim', opts = {
strategy = "toggleterm"
}},
{ import = 'user.plugin.swift' },
{ import = 'user.plugin.telescope' },
{ import = 'user.plugin.theme' },