Migrate plugins from Plug to packer

This commit is contained in:
2021-05-23 20:54:12 +02:00
parent 0b81a1e8b2
commit 515a0416d4
12 changed files with 446 additions and 120 deletions

View File

@@ -0,0 +1,13 @@
local M = {}
function M.is_buffer_empty()
-- Check whether the current buffer is empty
return vim.fn.empty(vim.fn.expand('%:t')) == 1
end
function M.has_width_gt(cols)
-- Check if the windows width is greater than a given number of columns
return vim.fn.winwidth(0) / 2 > cols
end
return M