trying to get tmux clipboard working

master
RageCage64 6 months ago
parent 5b78c227e9
commit da5fe6cb3d

2
.gitignore vendored

@ -1,2 +1,2 @@
**/*.luarc.json **/*.luarc.json
nvim/plugin/packer_compiled.lua **/nvim/plugin/packer_compiled.lua

@ -7,6 +7,9 @@ set -g mouse on
# Attempting to get terminal colour # Attempting to get terminal colour
# set -g default-terminal "tmux-256color" # set -g default-terminal "tmux-256color"
set -g default-terminal "xterm-256color" set -g default-terminal "xterm-256color"
set -ag terminal-overrides ",xterm-256color:clipboard"
setw -g allow-passthrough on
set -s set-clipboard on
# Top status with nice colours # Top status with nice colours
set -g status-style "fg=#665c54" set -g status-style "fg=#665c54"

@ -3,8 +3,8 @@ require("rose-pine").setup({
}) })
function SetColour(colour) function SetColour(colour)
-- colour = colour or "gruvbox" colour = colour or "gruvbox"
colour = colour or "rose-pine" -- colour = colour or "rose-pine"
vim.cmd(string.format("colorscheme %s", colour)) vim.cmd(string.format("colorscheme %s", colour))
--vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) --vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
@ -15,4 +15,4 @@ function UnsetColour()
vim.cmd("colorscheme default") vim.cmd("colorscheme default")
end end
-- SetColour() SetColour()

@ -5,6 +5,19 @@ vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
-- Paste over without copying in the pasted over word -- Paste over without copying in the pasted over word
vim.keymap.set("x", "<leader>p", "\"_dP") vim.keymap.set("x", "<leader>p", "\"_dP")
-- Maybe getting pasting through gmosh
vim.g.clipboard = {
name = 'OSC 52',
copy = {
['+'] = require('vim.ui.clipboard.osc52').copy('+'),
['*'] = require('vim.ui.clipboard.osc52').copy('*'),
},
paste = {
['+'] = require('vim.ui.clipboard.osc52').paste('+'),
['*'] = require('vim.ui.clipboard.osc52').paste('*'),
},
}
-- From old vimrc -- From old vimrc
-- Enter and space completion -- Enter and space completion
@ -43,8 +56,8 @@ vim.keymap.set("n", "<leader>ws", ":vsp<cr>")
vim.keymap.set("n", "<leader>wi", ":sp<cr>") vim.keymap.set("n", "<leader>wi", ":sp<cr>")
vim.keymap.set("n", "<leader>wt", ":tabnew<cr>") vim.keymap.set("n", "<leader>wt", ":tabnew<cr>")
vim.keymap.set("n", "<Leader>c", '"+') vim.keymap.set("n", "<leader>c", '"+')
vim.keymap.set("v", "<Leader>c", '"+') vim.keymap.set("v", "<leader>c", '"+')
-- Reload config -- Reload config
vim.keymap.set("n", "<leader>rc", ":so $HOME/.config/nvim/init.lua<cr>") vim.keymap.set("n", "<leader>rc", ":so $HOME/.config/nvim/init.lua<cr>")

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end end
time([[Luarocks path setup]], true) time([[Luarocks path setup]], true)
local package_path_str = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/share/lua/5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/share/lua/5.1/?/init.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/lib/luarocks/rocks-5.1/?.lua;/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/lib/luarocks/rocks-5.1/?/init.lua" local package_path_str = "/usr/local/google/home/braydonk/.cache/nvim/packer_hererocks/2.1.1716656478/share/lua/5.1/?.lua;/usr/local/google/home/braydonk/.cache/nvim/packer_hererocks/2.1.1716656478/share/lua/5.1/?/init.lua;/usr/local/google/home/braydonk/.cache/nvim/packer_hererocks/2.1.1716656478/lib/luarocks/rocks-5.1/?.lua;/usr/local/google/home/braydonk/.cache/nvim/packer_hererocks/2.1.1716656478/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/braydonk/.cache/nvim/packer_hererocks/2.1.1707061634/lib/lua/5.1/?.so" local install_cpath_pattern = "/usr/local/google/home/braydonk/.cache/nvim/packer_hererocks/2.1.1716656478/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str package.path = package.path .. ';' .. package_path_str
end end
@ -76,112 +76,112 @@ time([[Defining packer_plugins]], true)
_G.packer_plugins = { _G.packer_plugins = {
LuaSnip = { LuaSnip = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/LuaSnip", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/LuaSnip",
url = "https://github.com/L3MON4D3/LuaSnip" url = "https://github.com/L3MON4D3/LuaSnip"
}, },
["centerpad.nvim"] = { ["centerpad.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/centerpad.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/centerpad.nvim",
url = "https://github.com/smithbm2316/centerpad.nvim" url = "https://github.com/smithbm2316/centerpad.nvim"
}, },
["cmp-nvim-lsp"] = { ["cmp-nvim-lsp"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/cmp-nvim-lsp" url = "https://github.com/hrsh7th/cmp-nvim-lsp"
}, },
["editorconfig-vim"] = { ["editorconfig-vim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/editorconfig-vim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/editorconfig-vim",
url = "https://github.com/editorconfig/editorconfig-vim" url = "https://github.com/editorconfig/editorconfig-vim"
}, },
["gruvbox.nvim"] = { ["gruvbox.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/gruvbox.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/gruvbox.nvim",
url = "https://github.com/ellisonleao/gruvbox.nvim" url = "https://github.com/ellisonleao/gruvbox.nvim"
}, },
["lsp-zero.nvim"] = { ["lsp-zero.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim",
url = "https://github.com/VonHeikemen/lsp-zero.nvim" url = "https://github.com/VonHeikemen/lsp-zero.nvim"
}, },
["mason-lspconfig.nvim"] = { ["mason-lspconfig.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
url = "https://github.com/williamboman/mason-lspconfig.nvim" url = "https://github.com/williamboman/mason-lspconfig.nvim"
}, },
["mason.nvim"] = { ["mason.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/mason.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/mason.nvim",
url = "https://github.com/williamboman/mason.nvim" url = "https://github.com/williamboman/mason.nvim"
}, },
moonfly = { moonfly = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/moonfly", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/moonfly",
url = "https://github.com/bluz71/vim-moonfly-colors" url = "https://github.com/bluz71/vim-moonfly-colors"
}, },
["neo-tree.nvim"] = { ["neo-tree.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/neo-tree.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/neo-tree.nvim",
url = "https://github.com/nvim-neo-tree/neo-tree.nvim" url = "https://github.com/nvim-neo-tree/neo-tree.nvim"
}, },
["nui.nvim"] = { ["nui.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/nui.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/nui.nvim",
url = "https://github.com/MunifTanjim/nui.nvim" url = "https://github.com/MunifTanjim/nui.nvim"
}, },
["nvim-cmp"] = { ["nvim-cmp"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/nvim-cmp", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/nvim-cmp",
url = "https://github.com/hrsh7th/nvim-cmp" url = "https://github.com/hrsh7th/nvim-cmp"
}, },
["nvim-lspconfig"] = { ["nvim-lspconfig"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig" url = "https://github.com/neovim/nvim-lspconfig"
}, },
["nvim-treesitter"] = { ["nvim-treesitter"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/nvim-treesitter", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter" url = "https://github.com/nvim-treesitter/nvim-treesitter"
}, },
["packer.nvim"] = { ["packer.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/packer.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim" url = "https://github.com/wbthomason/packer.nvim"
}, },
playground = { playground = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/playground", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/playground",
url = "https://github.com/nvim-treesitter/playground" url = "https://github.com/nvim-treesitter/playground"
}, },
["plenary.nvim"] = { ["plenary.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/plenary.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/plenary.nvim" url = "https://github.com/nvim-lua/plenary.nvim"
}, },
["rose-pine"] = { ["rose-pine"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/rose-pine", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/rose-pine",
url = "https://github.com/rose-pine/neovim" url = "https://github.com/rose-pine/neovim"
}, },
["telescope.nvim"] = { ["telescope.nvim"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/telescope.nvim", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim" url = "https://github.com/nvim-telescope/telescope.nvim"
}, },
undotree = { undotree = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/undotree", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/undotree",
url = "https://github.com/mbbill/undotree" url = "https://github.com/mbbill/undotree"
}, },
["vim-commentary"] = { ["vim-commentary"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/vim-commentary", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/vim-commentary",
url = "https://github.com/tpope/vim-commentary" url = "https://github.com/tpope/vim-commentary"
}, },
["vim-surround"] = { ["vim-surround"] = {
loaded = true, loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/vim-surround", path = "/usr/local/google/home/braydonk/.local/share/nvim/site/pack/packer/start/vim-surround",
url = "https://github.com/tpope/vim-surround" url = "https://github.com/tpope/vim-surround"
} }
} }

Loading…
Cancel
Save