uuid plugin

This commit is contained in:
Arastoo Khajehee 2026-03-30 17:40:20 +09:00
parent 9b28947752
commit b1e353c5a4
1 changed files with 22 additions and 1 deletions

View File

@ -770,7 +770,7 @@ require('lazy').setup({
-- <c-k>: Toggle signature help -- <c-k>: Toggle signature help
-- --
-- See :h blink-cmp-config-keymap for defining your own keymap -- See :h blink-cmp-config-keymap for defining your own keymap
preset = 'default', preset = 'super-tab',
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see: -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
@ -921,6 +921,7 @@ require('lazy').setup({
opts = {}, opts = {},
}, },
-- image render
{ {
'3rd/image.nvim', '3rd/image.nvim',
config = function() config = function()
@ -941,6 +942,17 @@ require('lazy').setup({
end, end,
}, },
{
'TrevorS/uuid-nvim',
lazy = true,
config = function()
-- optional configuration
require('uuid-nvim').setup {
case = 'upper',
}
end,
},
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the -- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
-- init.lua. If you want these files, they are in the repository, so you can just download them and -- init.lua. If you want these files, they are in the repository, so you can just download them and
-- place them in the correct locations. -- place them in the correct locations.
@ -1120,3 +1132,12 @@ map('n', '<leader>M', function() set_mark(true) end, { desc = 'Set global mark'
map('n', "<leader>'", '<cmd>marks<CR>', { desc = 'List marks' }) map('n', "<leader>'", '<cmd>marks<CR>', { desc = 'List marks' })
map('n', '<leader>"', '<cmd>marks<CR>', { desc = 'List all marks' }) map('n', '<leader>"', '<cmd>marks<CR>', { desc = 'List all marks' })
local uuid = require 'uuid-nvim'
uuid.setup {
case = 'lower',
quotes = 'single',
}
-- vim.keymap.set('n', '<leader>ut', uuid.toggle_highlighting)
vim.keymap.set('n', '<leader>uu', uuid.insert_v4)