This commit is contained in:
Henrik Bakken
2023-05-17 15:21:50 +02:00
parent b798b52647
commit e9c0d6a15d
2 changed files with 16 additions and 8 deletions
+13 -5
View File
@@ -118,6 +118,9 @@ require("lazy").setup({
require("nvim-lastplace").setup()
end,
},
{
"mbbill/undotree",
},
{
-- tmux / vim interop
"christoomey/vim-tmux-navigator",
@@ -395,15 +398,20 @@ require("lazy").setup({
})
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline({ "/", "?" }, {
mapping = cmp.mapping.preset.cmdline(),
sources = { { name = "buffer" } },
})
-- cmp.setup.cmdline({ "/", "?" }, {
-- mapping = cmp.mapping.preset.cmdline(),
-- sources = { { name = "buffer" } },
-- })
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(":", {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({ { name = "path" } }, { { name = "cmdline" } }),
sources = cmp.config.sources({
{
name = "path",
option = { trailing_slash = true },
},
}, { { name = "cmdline" } }),
})
end,
}, -- Fuzzy Finder (files, lsp, etc)