Skip to content

Commit

Permalink
Use ruuid as abbreviation for random UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichm committed Jan 16, 2024
1 parent 31f5002 commit 923d0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ vim.api.nvim_create_autocmd('TextYankPost', {
})

-- Global abbreviations.
vim.cmd.iabbrev('<expr>', 'uuid', [[luaeval('io.open("/proc/sys/kernel/random/uuid"):read()')]])
vim.cmd.iabbrev('<expr>', 'ruuid', [[luaeval('io.open("/proc/sys/kernel/random/uuid"):read()')]])

-- Write without triggering autocommands.
vim.api.nvim_create_user_command('Nw', [[:noautocmd w]], {})
Expand Down

0 comments on commit 923d0cb

Please sign in to comment.