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 -- Add any additional keymaps here
-- C-/ should be comment instead of lazyterm -- C-/ should be comment instead of lazyterm
vim.api.nvim_del_keymap("n", "<c-/>") vim.keymap.del("n", "<c-/>")
vim.api.nvim_set_keymap("n", "<c-/>", "gcc", {}) vim.keymap.set({ "n" }, "<c-/>", "gcc", { remap = true })
vim.api.nvim_set_keymap("v", "<c-/>", "gc", {}) vim.keymap.set({ "v" }, "<c-/>", "gc", { remap = true })
vim.api.nvim_set_keymap("n", "<Leader><c-/>", "gcgc", {}) vim.keymap.set({ "n" }, "<Leader><c-/>", "gcgc", { remap = true })
vim.api.nvim_set_keymap("n", "<Tab>", "<Space>,", {}) vim.keymap.del({ "n" }, "<c-_>")
vim.api.nvim_set_keymap("n", "zz", "zt", {}) 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.keymap.set("n", "<Tab>", "<Space>,", {})
vim.api.nvim_set_keymap("n", "]d", ":lua vim.diagnostic.goto_next { float = false }<Enter>", {}) 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; enable = true;
settings = { settings = {
font-size = 14; font-size = 14;
font-family = "BerkeleyMono Nerd Font"; font-family = "Berkeley Mono Variable";
font-feature = [ font-codepoint-map = [ "U+2191-U+2195,U+2500-U+259F=BerkeleyMono Nerd Font" ];
# "ss02", -- Clean zero font-family-bold-italic = "Monaspace Xenon";
"ss03" # Slashed zero font-style-bold-italic = "ExtraLight Italic";
# "ss04", -- Cut zero font-variation-italic = [ "wght=100" ];
];
mouse-hide-while-typing = true; mouse-hide-while-typing = true;
cursor-style = "block"; cursor-style = "block";
@ -53,7 +52,7 @@ in
window-theme = "system"; window-theme = "system";
keybind = [ keybind = [
"alt+shift+c=copy_from_clipboard" "alt+shift+c=copy_to_clipboard"
"alt+shift+v=paste_from_clipboard" "alt+shift+v=paste_from_clipboard"
"ctrl+tab=goto_split:previous" "ctrl+tab=goto_split:previous"
"alt+enter=toggle_fullscreen" "alt+enter=toggle_fullscreen"

View file

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