mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-07 19:44:58 +02:00
remaps
This commit is contained in:
parent
d2bc749833
commit
480d650e11
3 changed files with 25 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue