Updates after installing on mac (font resizing, title, lazydocker)

This commit is contained in:
2023-12-01 15:26:03 -05:00
parent 159122bb18
commit a1e0aa6a9f
4 changed files with 39 additions and 10 deletions

View File

@@ -6,3 +6,7 @@ local Util = require("lazyvim.util")
vim.keymap.set("n", "<leader>H", function()
Util.terminal({ "clx" })
end, { desc = "Toggle clx (console HackerNews) floating terminal" })
vim.keymap.set("n", "<leader>D", function()
Util.terminal({ "lazydocker" }, { esc_esc = false, ctrl_hjkl = false })
end, { desc = "Toggle lazydocker (console Docker Desktop) floating terminal" })

View File

@@ -2,5 +2,11 @@
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
vim.opt.guifont = "Berkeley Mono Variable:h13"
-- idk if it does anything cause I have to set it in the nvim-cmp settings too
vim.opt.completeopt = "menu,menuone,noinsert,noselect"
-- Window decorations
vim.opt.title = true
vim.opt.titlestring = "%{substitute(getcwd(),$HOME,'~','')} - Neovide"

View File

@@ -0,0 +1,18 @@
return {
"ktunprasert/gui-font-resize.nvim",
config = function()
require("gui-font-resize").setup({
default_size = 13.0,
change_by = 1,
})
end,
keys = {
{ "<D-Up>", "<Cmd>GUIFontSizeUp<CR>", desc = "Increase font size" },
{ "<D-Down>", "<Cmd>GUIFontSizeDown<CR>", desc = "Decrease font size" },
{
"<D-0>",
"<Cmd>set guifont=Berkeley\\ Mono\\ Variable:h13 | GUIFontSizeSet<CR>",
desc = "Set font family and size to default",
},
},
}