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:
@@ -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
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ return {
|
|||||||
function()
|
function()
|
||||||
require("treesj").toggle()
|
require("treesj").toggle()
|
||||||
end,
|
end,
|
||||||
|
mode = "n",
|
||||||
|
desc = "Join/split block",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {},
|
opts = {},
|
||||||
|
|||||||
Reference in New Issue
Block a user