refactor: cleanup keymaps and fixed bnext/bprev when bufferline is disabled

This commit is contained in:
Folke Lemaitre 2023-01-11 16:14:09 +01:00
parent 06107862a7
commit 2ea489c7ba
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 40 additions and 33 deletions

View file

@ -15,6 +15,11 @@ function M.on_attach(on_attach)
})
end
---@param plugin string
function M.has(plugin)
return require("lazy.core.config").plugins[plugin] ~= nil
end
-- returns the root directory based on:
-- * lsp workspace folders
-- * lsp root_dir