1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-04-16 12:14:48 +02:00

Nvim: Fixed K-key behaviour for focussing documentation

This commit is contained in:
2026-04-16 09:13:39 +02:00
parent 0bd4ea6149
commit f05a3c5377
2 changed files with 7 additions and 2 deletions

View File

@@ -1,7 +1,10 @@
return { return {
-- folding improvements -- folding improvements
"kevinhwang91/nvim-ufo", "kevinhwang91/nvim-ufo",
dependencies = { "kevinhwang91/promise-async" }, dependencies = {
"kevinhwang92/promise-async",
"neovim/nvim-lspconfig",
},
keys = { keys = {
{ {
"K", "K",
@@ -10,7 +13,7 @@ return {
if not winid then if not winid then
vim.lsp.buf.hover({ vim.lsp.buf.hover({
border = "rounded", border = "rounded",
focusable = false, focusable = true, -- set to false to disable pressing K twice to focus the window
max_width = 100, max_width = 100,
}) })
end end

View File

@@ -8,6 +8,8 @@ return {
function() function()
require("treesj").toggle() require("treesj").toggle()
end, end,
mode = "n",
desc = "Join/split block",
}, },
}, },
opts = {}, opts = {},