chore: synced with nixvim config
This commit is contained in:
parent
c9d82fcf63
commit
2d03116e58
2 changed files with 30 additions and 0 deletions
|
|
@ -1,4 +1,25 @@
|
|||
return {
|
||||
"L3MON4D3/LuaSnip",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
local ls = require("luasnip")
|
||||
local types = require("luasnip.util.types")
|
||||
ls.config.set_config({
|
||||
history = true,
|
||||
updateevents = "TextChanged,TextChangedI",
|
||||
enable_autosnippets = true,
|
||||
ext_opts = {
|
||||
[types.choiceNode] = {
|
||||
active = {
|
||||
virt_text = {{"●", "GruvboxOrange"}},
|
||||
},
|
||||
},
|
||||
[types.insertNode] = {
|
||||
active = {
|
||||
virt_text = {{"●", "GruvboxBlue"}},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ return {
|
|||
end,
|
||||
},
|
||||
{ "nvim-telescope/telescope-ui-select.nvim" },
|
||||
{ "debugloop/telescope-undo.nvim" },
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
|
|
@ -92,11 +93,19 @@ return {
|
|||
["ui-select"] = {
|
||||
require("telescope.themes").get_dropdown({}),
|
||||
},
|
||||
["undo"] = {
|
||||
use_delta = true,
|
||||
layout_strategy = "vertical",
|
||||
layout_config = {
|
||||
preview_height = 0.8,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- Load extensions
|
||||
pcall(telescope.load_extension("fzf"))
|
||||
pcall(telescope.load_extension("ui-select"))
|
||||
pcall(telescope.load_extension("undo"))
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue