Skip to content

Instantly share code, notes, and snippets.

@fbxai
fbxai / mappings.lua
Created April 30, 2026 21:57
Allow CMD+C / CMD+V to have independent buffers in NvChad NEOVIM
require "nvchad.mappings"
-- Disables Neovim from capturing the mouse for Visual Mode
-- 'n' means mouse works in Normal mode (for clicking to move cursor)
-- 'i' means mouse works in Insert mode
-- Leaving out 'v' prevents it from entering Visual Mode on drag
vim.opt.mouse = "ni"
-- Disable default unnamedplus clipboard
vim.opt.clipboard = ""