Hyprland-dotfiles/nvim/lua/user_template/keymap/completion.lua
2024-07-21 02:51:17 -04:00

17 lines
501 B
Lua

local mappings = {}
-- Place global keymaps here.
mappings["plug_map"] = {}
-- NOTE: This function is special! Keymaps defined here are ONLY effective in buffers with LSP(s) attached
-- NOTE: Make sure to include `:with_buffer(buf)` to limit the scope of your mappings.
---@param buf number @The effective bufnr
mappings["lsp"] = function(buf)
return {
-- Example
["n|K"] = require("keymap.bind").map_cr("Lspsaga hover_doc"):with_buffer(buf):with_desc("lsp: Show doc"),
}
end
return mappings