feat: use built-in clipboard instead of system's

This commit is contained in:
Guz
2025-01-03 10:19:53 -03:00
parent f210c68bc2
commit 7082a250be
2 changed files with 4 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ end, { desc = "Toggle spelling correction" })
vim.keymap.set("n", "<leader>ee", vim.diagnostic.open_float, { desc = "Open diagnostics" })
vim.keymap.set({ "n", "v" }, "<leader>y", '"+y', { desc = "Copy to system's clipboard" })
vim.keymap.set({ "n", "v" }, "<leader>p", '"+p', { desc = "Paste from system's clipboard" })
-- ------
vim.api.nvim_create_autocmd("LspAttach", {

View File

@@ -36,7 +36,7 @@ vim.o.scrolloff = 10
vim.o.colorcolumn = "80"
-- Sync NeoVim and OS clipboards
vim.o.clipboard = "unnamedplus"
vim.o.clipboard = ""
-- Highlight search
vim.o.hlsearch = false