This commit is contained in:
zolinthecow 2024-11-13 10:18:54 +00:00
parent d2bc749833
commit 480d650e11
3 changed files with 25 additions and 3 deletions

View file

@ -1,4 +1,5 @@
-- Set <space> as the leader key
-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
vim.g.mapleader = ' '
@ -27,7 +28,21 @@ vim.opt.showmode = false
-- Sync clipboard between OS and Neovim.
-- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'`
vim.opt.clipboard = 'unnamedplus'
if os.getenv 'SSH_CLIENT' then
vim.g.clipboard = {
name = 'OSC 52',
copy = {
['+'] = require('vim.ui.clipboard.osc52').copy '+',
['*'] = require('vim.ui.clipboard.osc52').copy '*',
},
paste = {
['+'] = require('vim.ui.clipboard.osc52').paste '+',
['*'] = require('vim.ui.clipboard.osc52').paste '*',
},
}
else
vim.opt.clipboard = 'unnamedplus'
end
-- Enable break indent
vim.opt.tabstop = 4