|
|
|
@ -12,6 +12,8 @@ vim.cmd('set ts=4 sts=4 sw=4 expandtab')
|
|
|
|
|
|
|
|
|
|
-- clipboard
|
|
|
|
|
vim.cmd('set clipboard+=unnamedplus')
|
|
|
|
|
vim.keymap.set('n', '<leader>Y', '"+y')
|
|
|
|
|
vim.keymap.set('n', '<leader>P', '"+p')
|
|
|
|
|
|
|
|
|
|
-- hybrid numbering
|
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
@ -133,6 +135,8 @@ vim.diagnostic.config({
|
|
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd('LspAttach', {
|
|
|
|
|
callback = function(ev)
|
|
|
|
|
-- custom colors
|
|
|
|
|
vim.set('hi DiagnosticUnderlineError cterm=undercurl guisp=Red')
|
|
|
|
|
-- key mappings
|
|
|
|
|
local opts = { buffer = ev.buf,}
|
|
|
|
|
-- error viewing
|
|
|
|
|