ghostty / nvim: font + keybinding tweaks

This commit is contained in:
Daniel Lundin 2024-08-13 20:21:59 +02:00
parent 873dcca9bc
commit 65761d7b3f
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
3 changed files with 20 additions and 16 deletions

View file

@ -3,12 +3,17 @@
-- Add any additional keymaps here
-- C-/ should be comment instead of lazyterm
vim.api.nvim_del_keymap("n", "<c-/>")
vim.api.nvim_set_keymap("n", "<c-/>", "gcc", {})
vim.api.nvim_set_keymap("v", "<c-/>", "gc", {})
vim.api.nvim_set_keymap("n", "<Leader><c-/>", "gcgc", {})
vim.api.nvim_set_keymap("n", "<Tab>", "<Space>,", {})
vim.api.nvim_set_keymap("n", "zz", "zt", {})
vim.keymap.del("n", "<c-/>")
vim.keymap.set({ "n" }, "<c-/>", "gcc", { remap = true })
vim.keymap.set({ "v" }, "<c-/>", "gc", { remap = true })
vim.keymap.set({ "n" }, "<Leader><c-/>", "gcgc", { remap = true })
vim.keymap.del({ "n" }, "<c-_>")
vim.keymap.set({ "n" }, "<c-_>", "gcc", { remap = true })
vim.keymap.set({ "v" }, "<c-_>", "gc", { remap = true })
vim.keymap.set({ "n" }, "<Leader><c-_>", "gcgc", { remap = true })
vim.api.nvim_set_keymap("n", "[d", ":lua vim.diagnostic.goto_prev { float = false }<Enter>", {})
vim.api.nvim_set_keymap("n", "]d", ":lua vim.diagnostic.goto_next { float = false }<Enter>", {})
vim.keymap.set("n", "<Tab>", "<Space>,", {})
vim.keymap.set("n", "zz", "zt", {})
vim.keymap.set("n", "[d", ":lua vim.diagnostic.goto_prev { float = false }<Enter>", {})
vim.keymap.set("n", "]d", ":lua vim.diagnostic.goto_next { float = false }<Enter>", {})

View file

@ -30,12 +30,11 @@ in
enable = true;
settings = {
font-size = 14;
font-family = "BerkeleyMono Nerd Font";
font-feature = [
# "ss02", -- Clean zero
"ss03" # Slashed zero
# "ss04", -- Cut zero
];
font-family = "Berkeley Mono Variable";
font-codepoint-map = [ "U+2191-U+2195,U+2500-U+259F=BerkeleyMono Nerd Font" ];
font-family-bold-italic = "Monaspace Xenon";
font-style-bold-italic = "ExtraLight Italic";
font-variation-italic = [ "wght=100" ];
mouse-hide-while-typing = true;
cursor-style = "block";
@ -53,7 +52,7 @@ in
window-theme = "system";
keybind = [
"alt+shift+c=copy_from_clipboard"
"alt+shift+c=copy_to_clipboard"
"alt+shift+v=paste_from_clipboard"
"ctrl+tab=goto_split:previous"
"alt+enter=toggle_fullscreen"

View file

@ -4,7 +4,7 @@
enable = true;
baseIndex = 0;
clock24 = true;
escapeTime = 10;
escapeTime = 500;
mouse = true;
shortcut = "o";
extraConfig = ''