]> git.huck.website - nvim.git/commitdiff
clipboard integration
authorHuck Boles <huck@huck.website>
Thu, 20 Apr 2023 17:02:40 +0000 (12:02 -0500)
committerHuck Boles <huck@huck.website>
Thu, 20 Apr 2023 17:02:40 +0000 (12:02 -0500)
lua/map.lua
lua/plugins/lsp.lua
lua/settings.lua

index a04ee37860cf306f2c8a042ebd81124964c52558..4974965982a8bf0130d0626e858958e29a7e9cf2 100644 (file)
@@ -44,7 +44,8 @@ vim.keymap.set('n', '<leader>n', vim.diagnostic.goto_next )
 vim.keymap.set('n', '<leader>p', vim.diagnostic.goto_prev )
 vim.keymap.set('n', '<leader>R', vim.lsp.buf.rename )
 vim.keymap.set('n', '<leader>k', vim.lsp.buf.hover )
-vim.keymap.set('n', '<leader>d', 
+vim.keymap.set('n', '<leader>K', vim.diagnostic.open_float )
+vim.keymap.set('n', '<leader>d',
     function()
         if vim.g.visible_diagnostics then
             vim.diagnostic.disable()
index bf9881c12716d8db79ef9b6e0714edbbe716972a..8e35700007df25169891f4493d08e3687cddc763 100644 (file)
@@ -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,
index 6fb62a3a7a075262fe7181eb58b58e676a3ccee0..70175fc74badc7583402941c2251f8ce83445eee 100644 (file)
@@ -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