From 3c9d33fa715556fb4ed3511bee73876fd1ca169a Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Sun, 26 May 2024 23:11:07 +0200 Subject: [PATCH] Remove redundant comments, and change width in oil --- home/.config/nvim/lua/plugs/oil.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/home/.config/nvim/lua/plugs/oil.lua b/home/.config/nvim/lua/plugs/oil.lua index f541882..5416798 100644 --- a/home/.config/nvim/lua/plugs/oil.lua +++ b/home/.config/nvim/lua/plugs/oil.lua @@ -10,14 +10,12 @@ local function toggle_oil_window() return end - -- Calculate the desired width (e.g., 20% of the terminal width) local term_width = vim.api.nvim_get_option("columns") - local width_percentage = 0.175 + local width_percentage = 0.1575 local min_width = 30 local max_width = 50 local width = utils.calculate_split_size(term_width, width_percentage, min_width, max_width) - -- Open a vertical split with the calculated width on the left and open oil.nvim vim.cmd("topleft vertical " .. width .. "vnew") oil_window = vim.api.nvim_get_current_win() vim.api.nvim_win_set_option(oil_window, "winfixwidth", true)