From 60a8702273cb5fa9e925194b7052db8044181be6 Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Thu, 20 Apr 2023 12:02:40 -0500 Subject: [PATCH] clipboard integration --- lua/map.lua | 3 ++- lua/plugins/lsp.lua | 2 +- lua/settings.lua | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/map.lua b/lua/map.lua index a04ee37..4974965 100644 --- a/lua/map.lua +++ b/lua/map.lua @@ -44,7 +44,8 @@ vim.keymap.set('n', 'n', vim.diagnostic.goto_next ) vim.keymap.set('n', 'p', vim.diagnostic.goto_prev ) vim.keymap.set('n', 'R', vim.lsp.buf.rename ) vim.keymap.set('n', 'k', vim.lsp.buf.hover ) -vim.keymap.set('n', 'd', +vim.keymap.set('n', 'K', vim.diagnostic.open_float ) +vim.keymap.set('n', 'd', function() if vim.g.visible_diagnostics then vim.diagnostic.disable() diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index bf9881c..8e35700 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -13,7 +13,7 @@ return { vim.lsp.diagnostics = { virtual_text = false, virtual_lines = true, - signs = false, + signs = true, underline = true, update_in_insert = false, severity_sort = true, diff --git a/lua/settings.lua b/lua/settings.lua index 6fb62a3..70175fc 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -9,7 +9,8 @@ vim.g.netrw_liststyle = 4 vim.g.visible_diagnostics = true vim.o.mousefocus = true -vim.o.mousemodel= 'extend' +vim.o.mousemodel = 'extend' +vim.o.clipboard = 'unnamedplus,unnamed' vim.o.lazyredraw = true -- 2.45.2