diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 1d3c6a9..ed1496a 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -250,6 +250,7 @@ require("pckr").add { { "williamboman/mason-lspconfig.nvim" }, { "hrsh7th/nvim-cmp" }, { "hrsh7th/cmp-nvim-lsp" }, + { "hrsh7th/cmp-buffer" }, { "L3MON4D3/LuaSnip" }, { "neovim/nvim-lspconfig", diff --git a/wezterm/.wezterm.lua b/wezterm/.wezterm.lua index 258f656..a4a7604 100644 --- a/wezterm/.wezterm.lua +++ b/wezterm/.wezterm.lua @@ -24,4 +24,18 @@ config.window_padding = { config.font = wezterm.font("ComicShannsMono Nerd Font") config.font_size = 20.0 +local TARGET_ROWS = 25 +wezterm.on("window-config-reloaded", function(window, pane) + local dims = window:get_dimensions() + local pixel_height = dims.pixel_height + + local line_height = config.line_height or 1.2 + local font_size = (pixel_height / TARGET_ROWS) / line_height + + window:set_config_overrides({ + font_size = font_size, + }) +end) +config.line_height = 1.2 + return config diff --git a/wezterm/.wezterm.lua:Zone.Identifier b/wezterm/.wezterm.lua:Zone.Identifier deleted file mode 100644 index a45e1ac..0000000 --- a/wezterm/.wezterm.lua:Zone.Identifier +++ /dev/null @@ -1,2 +0,0 @@ -[ZoneTransfer] -ZoneId=3