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
+16 -16
View File
@@ -12,32 +12,32 @@
-- ╰─────────────────────────────────────────────────────────╯
-- Check if the environment variable is set
local should_profile = os.getenv("NVIM_PROFILE")
local profile_module = os.getenv("NVIM_PROFILE_MODULE") or "*"
local should_profile = os.getenv('NVIM_PROFILE')
local profile_module = os.getenv('NVIM_PROFILE_MODULE') or '*'
-- Start the profiler
if should_profile then
require("profile").instrument_autocmds()
if should_profile:lower():match("^start") then
require("profile").start(profile_module)
require('profile').instrument_autocmds()
if should_profile:lower():match('^start') then
require('profile').start(profile_module)
else
require("profile").instrument(profile_module)
require('profile').instrument(profile_module)
end
end
-- Function to toggle the profiler
local function toggle_profile()
local prof = require("profile")
local prof = require('profile')
if prof.is_recording() then
prof.stop()
vim.ui.input({
prompt = "Save profile to:",
completion = "file",
default = "profile.json",
prompt = 'Save profile to:',
completion = 'file',
default = 'profile.json',
}, function(filename)
if filename then
prof.export(filename)
vim.notify(string.format("Wrote %s", filename))
vim.notify(string.format('Wrote %s', filename))
end
end)
else
@@ -46,11 +46,11 @@ local function toggle_profile()
end
-- Add the keybind to toggle the profiler
require("data").func.add_keymap("<leader>d<f1>", function()
require('data').func.add_keymap('<leader>d<f1>', function()
local prof_name = profile_module
if profile_module == "*" then
prof_name = "all"
if profile_module == '*' then
prof_name = 'all'
end
print("Profiling module: " .. prof_name)
print('Profiling module: ' .. prof_name)
toggle_profile()
end, "Toggle Profiler")
end, 'Toggle Profiler')