changed telesnip a bit
This commit is contained in:
parent
22f0c03b40
commit
5fd69f0d7c
1 changed files with 21 additions and 14 deletions
|
@ -1,15 +1,22 @@
|
|||
return {
|
||||
"https://git.k4li.de/pika/telesnip.nvim",
|
||||
dependencies = "nvim-telescope/telescope.nvim",
|
||||
opts = {
|
||||
-- snippet_path = "/path/to/your/snippets",
|
||||
-- custom_snippet_path = "/path/to/your/custom/snippets",
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("telesnip").setup(opts)
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>S", "<cmd>TelesnipShowSnippets<CR>", desc = "Open Snippet Picker" },
|
||||
{ "<leader>cs", "<cmd>TelesnipCustomSnippet<CR>", mode = "v", desc = "Save Custom Snippet" },
|
||||
},
|
||||
"https://git.k4li.de/pika/telesnip.nvim",
|
||||
dependencies = "nvim-telescope/telescope.nvim",
|
||||
opts = {
|
||||
-- ╭────────────────────────────────────────────────────────────────────────╮
|
||||
-- │ customize your custom_snippet_path (if you change the snippet_path │
|
||||
-- │ you might break something, as this is the directory for the snippets │
|
||||
-- │ inside the plugin folder) │
|
||||
-- ╰────────────────────────────────────────────────────────────────────────╯
|
||||
-- snippet_path = "/path/to/your/snippets",
|
||||
-- custom_snippet_path = "~/.config/nvim/snippets/",
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("telesnip").setup(opts)
|
||||
end,
|
||||
keys = {
|
||||
-- ─< just the standard two keybindings I configured. Be sure to make your own one, if you'd like >─
|
||||
{ "<leader>S", "<cmd>TelesnipShowSnippets<CR>", desc = "Open Snippet Picker" },
|
||||
{ "<leader>cs", "<cmd>TelesnipCustomSnippet<CR>", mode = "v", desc = "Save Custom Snippet" },
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue