mirror of https://github.com/LazyVim/starter
feat(keymaps): add buffer cycling for Alacritty users
parent
0d968fd283
commit
ebe6396f3d
|
@ -100,6 +100,10 @@ keyset("v", "<D-v>", '"1d"+gP', { desc = "Remove the selected part and paste fro
|
||||||
keyset("v", "<D-c>", '"+y', { desc = "Copy to clipboard in visual mode" })
|
keyset("v", "<D-c>", '"+y', { desc = "Copy to clipboard in visual mode" })
|
||||||
keyset("v", "<D-x>", '"+d', { desc = "Cut to clipboard" })
|
keyset("v", "<D-x>", '"+d', { desc = "Cut to clipboard" })
|
||||||
map_nv("<D-a>", "gg<S-v>G", { desc = "Select all" })
|
map_nv("<D-a>", "gg<S-v>G", { desc = "Select all" })
|
||||||
|
if vim.env.ALACRITTY_SOCKET then
|
||||||
|
keyset("n", "<C-Tab>", ":BufferLineCycleNext<CR>", { silent = true })
|
||||||
|
keyset("n", "<C-S-Tab>", ":BufferLineCyclePrev<CR>", { silent = true })
|
||||||
|
end
|
||||||
-- Code action menu
|
-- Code action menu
|
||||||
vim.keymap.set({ "n", "v" }, "<leader>ca", function()
|
vim.keymap.set({ "n", "v" }, "<leader>ca", function()
|
||||||
---@diagnostic disable-next-line: missing-parameter
|
---@diagnostic disable-next-line: missing-parameter
|
||||||
|
|
|
@ -75,6 +75,12 @@ return {
|
||||||
"-file-line-error", -- file line error messages
|
"-file-line-error", -- file line error messages
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
vim.g.vimtex_syntax_custom_cmds = {
|
||||||
|
{ name = "mb", mathmode = 1, argstyle = "bold", conceal = 1 },
|
||||||
|
{ name = "mf", mathmode = 1, argstyle = "boldital", conceal = 1 },
|
||||||
|
{ name = "mc", mathmode = 1, argstyle = "ital", conceal = 1 },
|
||||||
|
{ name = "mk", mathmode = 1, argstyle = "bold", conceal = 1 },
|
||||||
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -249,7 +255,7 @@ return {
|
||||||
help = true,
|
help = true,
|
||||||
},
|
},
|
||||||
keymap = {
|
keymap = {
|
||||||
accept = "<C-Tab>",
|
accept = false, -- handled by blink
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue