fix: ensure single quotes are used consistently across configuration files

This commit is contained in:
2024-11-12 14:19:44 -05:00
parent 0d6750bbcd
commit 3f096313fc
51 changed files with 3097 additions and 3057 deletions
+4 -4
View File
@@ -18,22 +18,22 @@
local plugins = {}
-- Check if lazy.nvim is installed
if pcall(require, "lazy") then
if pcall(require, 'lazy') then
-- If lazy.nvim is installed, return an empty table and do nothing
return plugins
else
-- If lazy.nvim is not installed and vim.g.ignore_no_lazy is not set, display a warning
if not vim.g.ignore_no_lazy then
require("data").func.notify("lazy.nvim is not installed", "WARNING")
require('data').func.notify('lazy.nvim is not installed', 'WARNING')
end
-- Try to require plugins manually if we are not using lazy.nvim
local function read_plugins_dir()
-- Getting the root path for the current module directory
local dir_path =
vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":h")
vim.fn.fnamemodify(debug.getinfo(1, 'S').source:sub(2), ':h')
-- Load modules from the data directory
require("data").load_modules_from_dir(dir_path, "plugins")
require('data').load_modules_from_dir(dir_path, 'plugins')
end
-- Read the directory and load any additional modules