Recover linting info. Small tweaks
This commit is contained in:
parent
219d254ea5
commit
4287dfe370
6 changed files with 35 additions and 30 deletions
|
|
@ -26,13 +26,16 @@ return function(buffer)
|
|||
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
|
||||
end, '[W]orkspace [L]ist Folders')
|
||||
|
||||
-- nvim-ufo mappings
|
||||
nmap("zR", require("ufo").openAllFolds, "Open All Folds")
|
||||
nmap("zM", require("ufo").closeAllFolds, "Close All Folds")
|
||||
nmap("zj", function()
|
||||
local function peekAtFold()
|
||||
local winid = require("ufo").peekFoldedLinesUnderCursor()
|
||||
|
||||
if not winid then
|
||||
vim.lsp.buf.hover()
|
||||
end
|
||||
end, "Peek At Current Fold")
|
||||
end
|
||||
|
||||
-- nvim-ufo mappings
|
||||
nmap("zR", require("ufo").openAllFolds, "Open All Folds")
|
||||
nmap("zM", require("ufo").closeAllFolds, "Close All Folds")
|
||||
nmap("zj", peekAtFold, "Peek At Current Fold")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue