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
+84 -84
View File
@@ -6,81 +6,81 @@
local P = { -- Define Telescope Plugins Specs
{ -- Telescope All Recent
"prochri/telescope-all-recent.nvim",
'prochri/telescope-all-recent.nvim',
dependencies = {
"nvim-telescope/telescope.nvim",
"kkharji/sqlite.lua",
'nvim-telescope/telescope.nvim',
'kkharji/sqlite.lua',
-- optional, if using telescope for vim.ui.select
"stevearc/dressing.nvim",
'stevearc/dressing.nvim',
},
opts = {
default = {
disable = true, -- disable any unkown pickers (recommended)
use_cwd = true, -- differentiate scoring for each picker based on cwd
sorting = "frecency", -- sorting: options: 'recent' and 'frecency'
sorting = 'frecency', -- sorting: options: 'recent' and 'frecency'
},
},
},
{ -- Telescope Heading
"crispgm/telescope-heading.nvim",
'crispgm/telescope-heading.nvim',
dependencies = {
"nvim-telescope/telescope.nvim",
'nvim-telescope/telescope.nvim',
},
config = function()
require("telescope").setup({
require('telescope').setup({
extensions = {
heading = {
treesitter = true,
},
},
})
require("telescope").load_extension("heading")
require('telescope').load_extension('heading')
end,
},
{ -- Telescope Spell checker
"matkrin/telescope-spell-errors.nvim",
'matkrin/telescope-spell-errors.nvim',
lazy = true,
cmd = require("data.cmd").spell_errors,
cmd = require('data.cmd').spell_errors,
config = function()
require("telescope").load_extension("spell_errors")
require('telescope').load_extension('spell_errors')
end,
dependencies = require("data.deps").needs_telescope,
dependencies = require('data.deps').needs_telescope,
},
{ -- Telescope Toggleterm
"ryanmsnyder/toggleterm-manager.nvim",
'ryanmsnyder/toggleterm-manager.nvim',
dependencies = {
"akinsho/nvim-toggleterm.lua",
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim", -- only needed because it's a dependency of telescope
'akinsho/nvim-toggleterm.lua',
'nvim-telescope/telescope.nvim',
'nvim-lua/plenary.nvim', -- only needed because it's a dependency of telescope
},
config = true,
keys = require("data.keys").telescope.toggleterm,
keys = require('data.keys').telescope.toggleterm,
},
{ -- Telescope Lazy
"nvim-telescope/telescope.nvim",
dependencies = "tsakirist/telescope-lazy.nvim",
keys = require("data.keys").telescope.lazy,
'nvim-telescope/telescope.nvim',
dependencies = 'tsakirist/telescope-lazy.nvim',
keys = require('data.keys').telescope.lazy,
},
{ -- Telescope Luasnip
"benfowler/telescope-luasnip.nvim",
module = "telescope._extensions.luasnip", -- if you wish to lazy-load
'benfowler/telescope-luasnip.nvim',
module = 'telescope._extensions.luasnip', -- if you wish to lazy-load
config = function()
require("telescope").load_extension("luasnip")
require('telescope').load_extension('luasnip')
end,
},
{ -- Telescope Git Worktree
"ThePrimeagen/git-worktree.nvim",
'ThePrimeagen/git-worktree.nvim',
},
{ -- UndoTree Telescope extension
"nvim-telescope/telescope.nvim",
'nvim-telescope/telescope.nvim',
dependencies = {
"nvim-lua/plenary.nvim",
"debugloop/telescope-undo.nvim",
"jonarrien/telescope-cmdline.nvim",
'nvim-lua/plenary.nvim',
'debugloop/telescope-undo.nvim',
'jonarrien/telescope-cmdline.nvim',
},
opts = function()
require("telescope").load_extension("undo")
vim.keymap.set("n", "<leader>uU", "<cmd>Telescope undo<cr>")
require('telescope').load_extension('undo')
vim.keymap.set('n', '<leader>uU', '<cmd>Telescope undo<cr>')
return {
extensions = {
undo = {},
@@ -89,108 +89,108 @@ local P = { -- Define Telescope Plugins Specs
end,
},
{ -- Telescope Software Licenses
"chip/telescope-software-licenses.nvim",
'chip/telescope-software-licenses.nvim',
dependencies = {
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim",
'nvim-telescope/telescope.nvim',
'nvim-lua/plenary.nvim',
},
config = function()
require("telescope").load_extension("software-licenses")
require('telescope').load_extension('software-licenses')
end,
},
{ -- Telescope Conventional Commits
"olacin/telescope-cc.nvim",
'olacin/telescope-cc.nvim',
config = function()
require("telescope").load_extension("conventional_commits")
require('telescope').load_extension('conventional_commits')
end,
},
{ -- Telescope File Browser
"nvim-telescope/telescope-file-browser.nvim",
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
'nvim-telescope/telescope-file-browser.nvim',
dependencies = { 'nvim-telescope/telescope.nvim', 'nvim-lua/plenary.nvim' },
config = function()
require("telescope").load_extension("file_browser")
require('telescope').load_extension('file_browser')
end,
keys = require("data.keys").telescope.filebrowser,
keys = require('data.keys').telescope.filebrowser,
},
{ -- Cheatsheet
"doctorfree/cheatsheet.nvim",
event = "VeryLazy",
'doctorfree/cheatsheet.nvim',
event = 'VeryLazy',
dependencies = {
{ "nvim-telescope/telescope.nvim" },
{ "nvim-lua/popup.nvim" },
{ "nvim-lua/plenary.nvim" },
{ 'nvim-telescope/telescope.nvim' },
{ 'nvim-lua/popup.nvim' },
{ 'nvim-lua/plenary.nvim' },
},
cmd = "Cheatsheet",
cmd = 'Cheatsheet',
config = function()
local ctactions = require("cheatsheet.telescope.actions")
require("cheatsheet").setup({
local ctactions = require('cheatsheet.telescope.actions')
require('cheatsheet').setup({
bundled_cheetsheets = {
enabled = {
"default",
"lua",
"markdown",
"regex",
"netrw",
"unicode",
'default',
'lua',
'markdown',
'regex',
'netrw',
'unicode',
},
disabled = { "nerd-fonts" },
disabled = { 'nerd-fonts' },
},
bundled_plugin_cheatsheets = {
enabled = {
"auto-session",
"goto-preview",
"octo.nvim",
"telescope.nvim",
"vim-easy-align",
"vim-sandwich",
'auto-session',
'goto-preview',
'octo.nvim',
'telescope.nvim',
'vim-easy-align',
'vim-sandwich',
},
disabled = { "gitsigns" },
disabled = { 'gitsigns' },
},
include_only_installed_plugins = true,
telescope_mappings = {
["<CR>"] = ctactions.select_or_fill_commandline,
["<A-CR>"] = ctactions.select_or_execute,
["<C-Y>"] = ctactions.copy_cheat_value,
["<C-E>"] = ctactions.edit_user_cheatsheet,
['<CR>'] = ctactions.select_or_fill_commandline,
['<A-CR>'] = ctactions.select_or_execute,
['<C-Y>'] = ctactions.copy_cheat_value,
['<C-E>'] = ctactions.edit_user_cheatsheet,
},
})
require("telescope").load_extension("cheatsheet")
require('telescope').load_extension('cheatsheet')
end,
},
{ -- Telescope Git Diffs
"paopaol/telescope-git-diffs.nvim",
'paopaol/telescope-git-diffs.nvim',
requires = {
"nvim-lua/plenary.nvim",
"sindrets/diffview.nvim",
'nvim-lua/plenary.nvim',
'sindrets/diffview.nvim',
},
},
{ -- Fzf Lua
"ibhagwan/fzf-lua",
opts = { "telescope", fzf_colors = true },
'ibhagwan/fzf-lua',
opts = { 'telescope', fzf_colors = true },
},
{
"danielfalk/smart-open.nvim",
branch = "0.2.x",
'danielfalk/smart-open.nvim',
branch = '0.2.x',
config = function()
require("telescope").load_extension("smart_open")
require('telescope').load_extension('smart_open')
end,
dependencies = {
"kkharji/sqlite.lua",
'kkharji/sqlite.lua',
-- Only required if using match_algorithm fzf
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
-- Optional. If installed, native fzy will be used when match_algorithm is fzy
{ "nvim-telescope/telescope-fzy-native.nvim" },
{ 'nvim-telescope/telescope-fzy-native.nvim' },
},
},
}
if require("data.func").check_global_var("use_telescope", false, true) then
P = { { import = "lazyvim.plugins.extras.editor.fzf" } }
if require('data.func').check_global_var('use_telescope', false, true) then
P = { { import = 'lazyvim.plugins.extras.editor.fzf' } }
end
if require("data.func").check_global_var("use_fzf_lua", true, false) then
table.insert(P, 1, { import = "lazyvim.plugins.extras.editor.fzf" })
table.insert(P, 2, { "ibhagwan/fzf-lua", lazy = false, opts = {} })
if require('data.func').check_global_var('use_fzf_lua', true, false) then
table.insert(P, 1, { import = 'lazyvim.plugins.extras.editor.fzf' })
table.insert(P, 2, { 'ibhagwan/fzf-lua', lazy = false, opts = {} })
end
return P