mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-02-15 06:21:13 +01:00
Fixed Spaces with Tabs for indents in lua
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
local M = {}
|
||||
function M.trim_clipboard()
|
||||
local content = vim.fn.getreg '+'
|
||||
-- Remove single trailing newline if present
|
||||
content = content:gsub('\n$', '')
|
||||
vim.fn.setreg('+', content)
|
||||
vim.fn.setreg('*', content)
|
||||
vim.notify('Copied selection to clipboard', vim.log.levels.INFO)
|
||||
local content = vim.fn.getreg '+'
|
||||
-- Remove single trailing newline if present
|
||||
content = content:gsub('\n$', '')
|
||||
vim.fn.setreg('+', content)
|
||||
vim.fn.setreg('*', content)
|
||||
vim.notify('Copied selection to clipboard', vim.log.levels.INFO)
|
||||
end
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user