mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-28 10:24:47 +01:00
NVIM: Keymap layout is now Lazy-centric
This commit is contained in:
@@ -2,6 +2,23 @@ return {
|
||||
-- folding improvements
|
||||
"kevinhwang91/nvim-ufo",
|
||||
dependencies = { "kevinhwang91/promise-async" },
|
||||
keys = {
|
||||
{
|
||||
"K",
|
||||
function()
|
||||
local winid = require("ufo").peekFoldedLinesUnderCursor()
|
||||
if not winid then
|
||||
vim.lsp.buf.hover({
|
||||
border = "rounded",
|
||||
focusable = false,
|
||||
max_width = 100,
|
||||
})
|
||||
end
|
||||
end,
|
||||
mode = "n",
|
||||
desc = "LSP: show documentation / peek folded section",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("ufo").setup()
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "FileType" }, {
|
||||
|
||||
Reference in New Issue
Block a user