feat: use built-in clipboard instead of system's
This commit is contained in:
@@ -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", {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user