Compare commits
3
Commits
c7e71ae91f
...
pre-v2.5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
794a54ee2d | ||
|
|
5d8ec77f80 | ||
|
|
920840db85 |
+1
-1
@@ -14,7 +14,7 @@ local M = {}
|
||||
|
||||
|
||||
M.base46 = {
|
||||
theme = "wombat",
|
||||
theme = "chadracula",
|
||||
|
||||
-- hl_override = {
|
||||
-- Comment = { italic = true },
|
||||
|
||||
@@ -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>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>th", function()
|
||||
-- require("nvchad.themes").open()
|
||||
-- end, { desc = "telescope nvchad themes" })
|
||||
--
|
||||
|
||||
map("n", "<leader>th", function()
|
||||
require("nvchad.themes").open()
|
||||
end, { desc = "telescope nvchad themes" })
|
||||
|
||||
-- map("n", "<leader>ff", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" })
|
||||
-- map(
|
||||
-- "n",
|
||||
|
||||
@@ -7,3 +7,25 @@ require "nvchad.options"
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user