From: Huck Boles Date: Thu, 20 Apr 2023 17:02:40 +0000 (-0500) Subject: clipboard integration X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=60a8702273cb5fa9e925194b7052db8044181be6;p=nvim.git clipboard integration --- 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