1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-03 17:49:26 +00:00

[neovim] Reorganize lua packages

This commit is contained in:
2022-10-16 12:28:51 +02:00
parent 8948fc6620
commit 7ae6819126
37 changed files with 40 additions and 37 deletions

View File

@ -0,0 +1,15 @@
vim.api.nvim_create_user_command("CopyBufferPath", function()
local path = vim.fn.expand("%:p")
vim.fn.setreg("+", path)
vim.notify('Copied "' .. path .. '" to the clipboard!')
end, {})
vim.api.nvim_create_user_command("CopyDirectoryPath", function()
local path = vim.fn.expand("%:p:h")
vim.fn.setreg("+", path)
vim.notify('Copied "' .. path .. '" to the clipboard!')
end, {})
vim.api.nvim_create_user_command("RemoveTrailingSpaces", function()
vim.cmd("% s/\\s\\+$//e")
end, {})