Fixed Spaces with Tabs for indents in lua

This commit is contained in:
psychhim
2025-10-07 01:49:59 +05:30
parent 92629d8e22
commit debdd50051
10 changed files with 1282 additions and 1264 deletions

View File

@@ -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