OSC52 clipboard yanks

This commit is contained in:
Christian Nieves
2023-02-13 12:31:47 -06:00
parent 189570685b
commit 84aa6e8933
7 changed files with 117 additions and 47 deletions

View File

@ -9,7 +9,7 @@ lsp_status.register_progress()
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = { "sumneko_lua", "rust_analyzer" }
ensure_installed = { "lua_ls", "rust_analyzer" }
})
local lspconfig = require("lspconfig")
@ -102,34 +102,6 @@ local runtime_path = vim.split(package.path, ";")
table.insert(runtime_path, "lua/?.lua")
table.insert(runtime_path, "lua/?/init.lua")
lspconfig.sumneko_lua.setup({
capabilities = capabilities,
on_attach = on_attach,
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = "LuaJIT",
-- Setup your lua path
path = runtime_path,
},
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = { "vim" },
},
workspace = {
-- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true),
},
-- Do not send telemetry data containing a randomized but unique identifier
telemetry = {
enable = false,
},
},
},
})
local lspkind = require("lspkind")
lspkind.init()
local cmp = require("cmp")

View File

@ -0,0 +1,3 @@
local map = require("utils").map
map("n", "<Leader>y", ":OSCYank<CR>", opts)
map("v", "<Leader>y", ":OSCYank<CR>", opts)

View File

@ -222,6 +222,10 @@ require('packer').startup(function(use)
'tmux-plugins/vim-tmux-focus-events',
'skywind3000/asyncrun.vim',
}
use {
'ojroques/vim-oscyank',
config = [[ require("config.oscyank") ]]
}
-- mine
use {