update: slightly WIP update with cool features
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
-- clipboard.lua will be edited by the bash command
|
||||
-- it will be replaced with one of the files from templates/clipboard/ directory
|
||||
vim.o.clipboard = "unnamedplus"
|
||||
-- vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
-- callback = function()
|
||||
-- local copy_to_unnamedplus = require("vim.ui.clipboard.osc52").copy("+")
|
||||
-- copy_to_unnamedplus(vim.v.event.regcontents)
|
||||
-- local copy_to_unnamed = require("vim.ui.clipboard.osc52").copy("*")
|
||||
-- copy_to_unnamed(vim.v.event.regcontents)
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
@@ -12,3 +12,17 @@ do
|
||||
vim.opt[k] = v
|
||||
end
|
||||
end
|
||||
|
||||
-- More
|
||||
vim.opt.fixeol = true
|
||||
vim.opt.list = true
|
||||
vim.opt.listchars = {
|
||||
trail = "·",
|
||||
tab = " ",
|
||||
}
|
||||
|
||||
-- Additional commands for typos
|
||||
vim.api.nvim_create_user_command("Qa", "qa", {})
|
||||
vim.api.nvim_create_user_command("QA", "qa", {})
|
||||
vim.api.nvim_create_user_command("WQa", "qa", {})
|
||||
vim.api.nvim_create_user_command("Wqa", "qa", {})
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
vim.opt.fixeol = true
|
||||
vim.opt.list = true
|
||||
vim.opt.listchars = {
|
||||
trail = "·",
|
||||
tab = " ",
|
||||
}
|
||||
Reference in New Issue
Block a user