Use system clipboard in neovim

This commit is contained in:
Mateusz Słodkowicz 2026-03-20 12:02:20 +01:00
parent 8b9b884bc3
commit 1cecb465c2
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo

View File

@ -1,3 +1,6 @@
vim.wo.number = true
vim.opt.clipboard:append { 'unnamed', 'unnamedplus' }
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if vim.fn.executable("git") == 1 then if vim.fn.executable("git") == 1 then
if not (vim.uv or vim.loop).fs_stat(lazypath) then if not (vim.uv or vim.loop).fs_stat(lazypath) then
@ -36,7 +39,5 @@ if vim.fn.executable("git") == 1 then
} }
require("lazy").setup(plugins, opts) require("lazy").setup(plugins, opts)
vim.cmd [[colorscheme dracula]] vim.cmd [[colorscheme dracula]]
vim.cmd [[set number]]
end end