45 lines
1.4 KiB
Lua
45 lines
1.4 KiB
Lua
if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE
|
|
|
|
-- AstroCore provides a central place to modify mappings set up as well as which-key menu titles
|
|
return {
|
|
"AstroNvim/astrocore",
|
|
---@type AstroCoreOpts
|
|
opts = {
|
|
mappings = {
|
|
-- first key is the mode
|
|
n = {
|
|
-- second key is the lefthand side of the map
|
|
|
|
-- navigate buffer tabs with `H` and `L`
|
|
-- L = {
|
|
-- function() require("astrocore.buffer").nav(vim.v.count > 0 and vim.v.count or 1) end,
|
|
-- desc = "Next buffer",
|
|
-- },
|
|
-- H = {
|
|
-- function() require("atsrocore.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end,
|
|
-- desc = "Previous buffer",
|
|
-- },
|
|
|
|
-- mappings seen under group name "Buffer"
|
|
["<leader>bD"] = {
|
|
function()
|
|
require("astroui.status.heirline").buffer_picker(
|
|
function(bufnr) require("astrocore.buffer").close(bufnr) end
|
|
)
|
|
end,
|
|
desc = "Pick to close",
|
|
},
|
|
-- tables with just a `desc` key will be registered with which-key if it's installed
|
|
-- this is useful for naming menus
|
|
["<leader>b"] = { desc = "Buffers" },
|
|
-- quick save
|
|
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
|
|
},
|
|
t = {
|
|
-- setting a mapping to false will disable it
|
|
-- ["<esc>"] = false,
|
|
},
|
|
},
|
|
},
|
|
}
|