added system clipboard keybind
This commit is contained in:
parent
185e158b7f
commit
a31384aa44
@ -12,6 +12,8 @@ vim.cmd('set ts=4 sts=4 sw=4 expandtab')
|
|||||||
|
|
||||||
-- clipboard
|
-- clipboard
|
||||||
vim.cmd('set clipboard+=unnamedplus')
|
vim.cmd('set clipboard+=unnamedplus')
|
||||||
|
vim.keymap.set('n', '<leader>Y', '"+y')
|
||||||
|
vim.keymap.set('n', '<leader>P', '"+p')
|
||||||
|
|
||||||
-- hybrid numbering
|
-- hybrid numbering
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
@ -133,6 +135,8 @@ vim.diagnostic.config({
|
|||||||
|
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
callback = function(ev)
|
callback = function(ev)
|
||||||
|
-- custom colors
|
||||||
|
vim.set('hi DiagnosticUnderlineError cterm=undercurl guisp=Red')
|
||||||
-- key mappings
|
-- key mappings
|
||||||
local opts = { buffer = ev.buf,}
|
local opts = { buffer = ev.buf,}
|
||||||
-- error viewing
|
-- error viewing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user