OSC52 clipboard yanks
This commit is contained in:
@ -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")
|
||||
|
3
vim/.vim/lua/config/oscyank.lua
Normal file
3
vim/.vim/lua/config/oscyank.lua
Normal file
@ -0,0 +1,3 @@
|
||||
local map = require("utils").map
|
||||
map("n", "<Leader>y", ":OSCYank<CR>", opts)
|
||||
map("v", "<Leader>y", ":OSCYank<CR>", opts)
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user