Compare commits

3 Commits
Author SHA1 Message Date
thread 794a54ee2d let ctrl+c copy work over ssh 2026-09-07 00:32:46 -04:00
thread 5d8ec77f80 theme: chadracula 2026-07-17 13:45:21 -04:00
thread 920840db85 theme set: <leader>th 2026-07-17 13:45:21 -04:00
3 changed files with 28 additions and 6 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ local M = {}
M.base46 = { M.base46 = {
theme = "wombat", theme = "chadracula",
-- hl_override = { -- hl_override = {
-- Comment = { italic = true }, -- Comment = { italic = true },
+5 -5
View File
@@ -63,11 +63,11 @@ map("n", "<leader>e", "<cmd>NvimTreeFocus<CR>", { desc = "nvimtree focus window"
-- map("n", "<leader>cm", "<cmd>Telescope git_commits<CR>", { desc = "telescope git commits" }) -- map("n", "<leader>cm", "<cmd>Telescope git_commits<CR>", { desc = "telescope git commits" })
-- map("n", "<leader>gt", "<cmd>Telescope git_status<CR>", { desc = "telescope git status" }) -- map("n", "<leader>gt", "<cmd>Telescope git_status<CR>", { desc = "telescope git status" })
-- map("n", "<leader>pt", "<cmd>Telescope terms<CR>", { desc = "telescope pick hidden term" }) -- map("n", "<leader>pt", "<cmd>Telescope terms<CR>", { desc = "telescope pick hidden term" })
--
-- map("n", "<leader>th", function() map("n", "<leader>th", function()
-- require("nvchad.themes").open() require("nvchad.themes").open()
-- end, { desc = "telescope nvchad themes" }) end, { desc = "telescope nvchad themes" })
--
-- map("n", "<leader>ff", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" }) -- map("n", "<leader>ff", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" })
-- map( -- map(
-- "n", -- "n",
+22
View File
@@ -7,3 +7,25 @@ require "nvchad.options"
vim.g.lua_snippets_path = { vim.fn.stdpath "config" .. "/snippets" } vim.g.lua_snippets_path = { vim.fn.stdpath "config" .. "/snippets" }
-- route "+/* registers through the terminal with OSC 52 when connected over SSH,
-- since xclip/wl-copy on the server can't reach the local clipboard.
-- paste must be present or the whole provider is rejected, but never query the
-- terminal: it generally refuses OSC 52 reads, and clipboard=unnamedplus makes
-- every put read "+", which would block on the query timeout. returning 0 makes
-- puts fall back to the internal register instantly.
if vim.env.SSH_TTY or vim.env.SSH_CONNECTION then
-- nvchad sets clipboard=unnamedplus, which syncs every yank/delete to "+;
-- over SSH only the explicit "+y from Ctrl+C should hit the terminal
vim.o.clipboard = ""
local osc52 = require "vim.ui.clipboard.osc52"
local function no_paste()
return 0
end
vim.g.clipboard = {
name = "osc52",
copy = { ["+"] = osc52.copy "+", ["*"] = osc52.copy "*" },
paste = { ["+"] = no_paste, ["*"] = no_paste },
}
end