fix: ensure single quotes are used consistently across configuration files
This commit is contained in:
+20
-20
@@ -9,13 +9,13 @@ local augroup = vim.api.nvim_create_augroup
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
|
||||
M.cpp_picker = function()
|
||||
augroup("cpp_picker", { clear = true })
|
||||
augroup('cpp_picker', { clear = true })
|
||||
-- C++ Picker
|
||||
autocmd("FileType", {
|
||||
group = "cpp_picker",
|
||||
pattern = { "cpp", "c", "h", "hpp" },
|
||||
autocmd('FileType', {
|
||||
group = 'cpp_picker',
|
||||
pattern = { 'cpp', 'c', 'h', 'hpp' },
|
||||
callback = function()
|
||||
require("data.func").add_keymap(require("data.keys").cpp_picker)
|
||||
require('data.func').add_keymap(require('data.keys').cpp_picker)
|
||||
end,
|
||||
})
|
||||
end
|
||||
@@ -28,9 +28,9 @@ M.minifiles = {
|
||||
if vim.g.minifiles_width ~= nil then
|
||||
multiplier = vim.g.minifiles_width
|
||||
end
|
||||
if package.loaded["mini.files"] then
|
||||
if package.loaded['mini.files'] then
|
||||
-- Obtain the existing config
|
||||
local config = require("mini.files").config
|
||||
local config = require('mini.files').config
|
||||
-- Update the width_preview based on the current window size
|
||||
if multiplier > 1 then
|
||||
-- If the multiplier is greater than 1, use as the preview width
|
||||
@@ -40,7 +40,7 @@ M.minifiles = {
|
||||
config.windows.width_preview = math.floor(vim.o.columns * multiplier)
|
||||
end
|
||||
-- Apply the updated config
|
||||
require("mini.files").setup(config)
|
||||
require('mini.files').setup(config)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -48,21 +48,21 @@ M.minifiles = {
|
||||
local is_mini_files_active = false
|
||||
|
||||
-- Autocommand group to handle dynamic resizing
|
||||
augroup("MiniFilesDynamicWidth", { clear = true })
|
||||
augroup('MiniFilesDynamicWidth', { clear = true })
|
||||
|
||||
-- Handle mini.files open event to set the flag
|
||||
autocmd("User", {
|
||||
group = "MiniFilesDynamicWidth",
|
||||
pattern = "MiniFilesExplorerOpen",
|
||||
autocmd('User', {
|
||||
group = 'MiniFilesDynamicWidth',
|
||||
pattern = 'MiniFilesExplorerOpen',
|
||||
callback = function()
|
||||
is_mini_files_active = true
|
||||
end,
|
||||
})
|
||||
|
||||
-- Handle mini.files close event to reset the flag and update the preview width
|
||||
autocmd("User", {
|
||||
group = "MiniFilesDynamicWidth",
|
||||
pattern = "MiniFilesExplorerClose",
|
||||
autocmd('User', {
|
||||
group = 'MiniFilesDynamicWidth',
|
||||
pattern = 'MiniFilesExplorerClose',
|
||||
callback = function()
|
||||
is_mini_files_active = false
|
||||
update_width_preview()
|
||||
@@ -70,14 +70,14 @@ M.minifiles = {
|
||||
})
|
||||
|
||||
-- Handle window resize event
|
||||
autocmd("VimResized", {
|
||||
group = "MiniFilesDynamicWidth",
|
||||
autocmd('VimResized', {
|
||||
group = 'MiniFilesDynamicWidth',
|
||||
callback = function()
|
||||
if is_mini_files_active then
|
||||
-- Defer the update until mini.files closes
|
||||
autocmd("User", {
|
||||
group = "MiniFilesDynamicWidth",
|
||||
pattern = "MiniFilesExplorerClose",
|
||||
autocmd('User', {
|
||||
group = 'MiniFilesDynamicWidth',
|
||||
pattern = 'MiniFilesExplorerClose',
|
||||
callback = update_width_preview,
|
||||
once = true, -- Ensure this runs only once
|
||||
})
|
||||
|
||||
+33
-33
@@ -8,92 +8,92 @@ local M = {}
|
||||
|
||||
--- Autosave plugin cmds
|
||||
M.autosave = {
|
||||
"ASToggle",
|
||||
'ASToggle',
|
||||
}
|
||||
|
||||
--- Codesnap plugin cmds
|
||||
M.codesnap = {
|
||||
"CodeSnap",
|
||||
"CodeSnapSave",
|
||||
"CodeSnapHighlight",
|
||||
"CodeSnapASCII",
|
||||
'CodeSnap',
|
||||
'CodeSnapSave',
|
||||
'CodeSnapHighlight',
|
||||
'CodeSnapASCII',
|
||||
}
|
||||
|
||||
--- Gists plugin cmds
|
||||
M.gist = {
|
||||
"GistCreate",
|
||||
"GistCreateFromFile",
|
||||
"GistsList",
|
||||
'GistCreate',
|
||||
'GistCreateFromFile',
|
||||
'GistsList',
|
||||
}
|
||||
|
||||
--- Gx plugin cmds
|
||||
M.gx = {
|
||||
"Browse",
|
||||
'Browse',
|
||||
}
|
||||
|
||||
--- Kitty-Scrollback plugin cmds
|
||||
M.kitty_scrollback = {
|
||||
"KittyScrollbackGenerateKittens",
|
||||
"KittyScrollbackCheckHealth",
|
||||
'KittyScrollbackGenerateKittens',
|
||||
'KittyScrollbackCheckHealth',
|
||||
}
|
||||
|
||||
--- LazyGit plugin cmds
|
||||
M.lazygit = {
|
||||
"LazyGit",
|
||||
"LazyGitConfig",
|
||||
"LazyGitCurrentFile",
|
||||
"LazyGitFilter",
|
||||
"LazyGitFilterCurrentFile",
|
||||
'LazyGit',
|
||||
'LazyGitConfig',
|
||||
'LazyGitCurrentFile',
|
||||
'LazyGitFilter',
|
||||
'LazyGitFilterCurrentFile',
|
||||
}
|
||||
|
||||
--- Nekifoch plugin cmds
|
||||
M.nekifoch = "Nekifoch"
|
||||
M.nekifoch = 'Nekifoch'
|
||||
|
||||
--- Thanks plugin cmds
|
||||
M.thanks = {
|
||||
"ThanksAll",
|
||||
"ThanksGithubAuth",
|
||||
"ThanksGithubLogout",
|
||||
"ThanksClearCache",
|
||||
'ThanksAll',
|
||||
'ThanksGithubAuth',
|
||||
'ThanksGithubLogout',
|
||||
'ThanksClearCache',
|
||||
}
|
||||
|
||||
--- Gitlinker plugin cmds
|
||||
M.gitlinker = {
|
||||
"GitLink",
|
||||
'GitLink',
|
||||
}
|
||||
|
||||
--- Qalc plugin cmds
|
||||
M.qalc = {
|
||||
"Qalc",
|
||||
"QalcAttach",
|
||||
"QalcYank",
|
||||
'Qalc',
|
||||
'QalcAttach',
|
||||
'QalcYank',
|
||||
}
|
||||
|
||||
--- Ripsub plugin cmds
|
||||
M.ripsub = {
|
||||
"RipSubstitute",
|
||||
'RipSubstitute',
|
||||
}
|
||||
|
||||
M.spell_errors = {
|
||||
"Telescope spell_errors",
|
||||
'Telescope spell_errors',
|
||||
}
|
||||
|
||||
--- Suda plugin cmds
|
||||
M.suda = {
|
||||
"SudaWrite",
|
||||
"SudaRead",
|
||||
'SudaWrite',
|
||||
'SudaRead',
|
||||
}
|
||||
|
||||
--- Transparent plugin cmds
|
||||
M.transparent = {
|
||||
"TransparentEnable",
|
||||
"TransparentDisable",
|
||||
"TransparentToggle",
|
||||
'TransparentEnable',
|
||||
'TransparentDisable',
|
||||
'TransparentToggle',
|
||||
}
|
||||
|
||||
--- Trouble plugin cmds
|
||||
M.trouble = {
|
||||
"Trouble",
|
||||
'Trouble',
|
||||
}
|
||||
|
||||
return M
|
||||
|
||||
+27
-27
@@ -5,31 +5,31 @@
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
local M = {}
|
||||
|
||||
local func = require("data.func")
|
||||
local types = require("data.types")
|
||||
local func = require('data.func')
|
||||
local types = require('data.types')
|
||||
|
||||
-- Auto-dark-mode conditional options
|
||||
M.auto_dark_mode = function()
|
||||
return func.check_global_var("autodarkmode", true, false)
|
||||
return func.check_global_var('autodarkmode', true, false)
|
||||
and not func.is_ssh()
|
||||
end
|
||||
|
||||
--- Auto Save conditional options
|
||||
M.autosave = function()
|
||||
return func.check_global_var("autosave", true, false)
|
||||
return func.check_global_var('autosave', true, false)
|
||||
end
|
||||
|
||||
-- Auto Format conditional options
|
||||
M.autoformat = function()
|
||||
return func.check_global_var("autoformat", true, false)
|
||||
return func.check_global_var('autoformat', true, false)
|
||||
end
|
||||
|
||||
--- Bars-N-Lines conditional options
|
||||
M.barsNlines = function()
|
||||
if
|
||||
func.check_global_var("statuscolumn", "barsNlines", "native")
|
||||
or func.check_global_var("tabline", "barsNlines", "bufferline")
|
||||
or func.check_global_var("statusline", "barsNlines", "lualine")
|
||||
func.check_global_var('statuscolumn', 'barsNlines', 'native')
|
||||
or func.check_global_var('tabline', 'barsNlines', 'bufferline')
|
||||
or func.check_global_var('statusline', 'barsNlines', 'lualine')
|
||||
then
|
||||
return true
|
||||
end
|
||||
@@ -37,42 +37,42 @@ M.barsNlines = function()
|
||||
end
|
||||
|
||||
M.avante = function()
|
||||
return func.check_global_var("useavante", true, false)
|
||||
return func.check_global_var('useavante', true, false)
|
||||
end
|
||||
|
||||
M.chatgpt = function()
|
||||
return func.check_global_var("usechatgpt", true, false)
|
||||
return func.check_global_var('usechatgpt', true, false)
|
||||
end
|
||||
|
||||
M.gp = function()
|
||||
return func.check_global_var("usegpai", true, false)
|
||||
return func.check_global_var('usegpai', true, false)
|
||||
end
|
||||
|
||||
--- Codeium conditional options
|
||||
M.codeium = function()
|
||||
return func.check_global_var("aitool", "codeium", "neocodeium")
|
||||
return func.check_global_var('aitool', 'codeium', 'neocodeium')
|
||||
end
|
||||
|
||||
--- CodeSnap conditional options
|
||||
M.codesnap = function()
|
||||
return func.check_global_var("codesnap", true, false)
|
||||
return func.check_global_var('codesnap', true, false)
|
||||
end
|
||||
|
||||
--- Colorful Window-Separators conditional options
|
||||
M.colorfulwinsep = function()
|
||||
return func.check_global_var("colorfulwinsep", true, false)
|
||||
return func.check_global_var('colorfulwinsep', true, false)
|
||||
end
|
||||
|
||||
--- Auto-CursorLine conditional options
|
||||
M.cursorline = function()
|
||||
return func.check_global_var("auto_cursorline", true, true)
|
||||
return func.check_global_var('auto_cursorline', true, true)
|
||||
end
|
||||
|
||||
--- Bufferline conditional options
|
||||
M.bufferline = function()
|
||||
if
|
||||
func.check_global_var("tabline", "bufferline", "bufferline")
|
||||
or func.check_global_var("tabline", "barsNlines", "bufferline")
|
||||
func.check_global_var('tabline', 'bufferline', 'bufferline')
|
||||
or func.check_global_var('tabline', 'barsNlines', 'bufferline')
|
||||
then
|
||||
return true
|
||||
end
|
||||
@@ -81,17 +81,17 @@ end
|
||||
|
||||
--- CoPilot conditional options
|
||||
M.copilot = function()
|
||||
return vim.g.aitool == "copilot"
|
||||
return vim.g.aitool == 'copilot'
|
||||
end
|
||||
|
||||
--- HardTime conditional options
|
||||
M.hardtime = function()
|
||||
return func.check_global_var("usehardtime", true, false)
|
||||
return func.check_global_var('usehardtime', true, false)
|
||||
end
|
||||
|
||||
--- Heirline conditional options
|
||||
M.heirline = function()
|
||||
return func.check_global_var("statusline", "heirline", "heirline")
|
||||
return func.check_global_var('statusline', 'heirline', 'heirline')
|
||||
end
|
||||
|
||||
--- Image conditional options
|
||||
@@ -106,7 +106,7 @@ end
|
||||
|
||||
--- LuaRocks conditional options
|
||||
M.luarocks = function()
|
||||
return func.check_global_var("useluarocks", true, true)
|
||||
return func.check_global_var('useluarocks', true, true)
|
||||
end
|
||||
|
||||
--- Minimap conditional options
|
||||
@@ -124,12 +124,12 @@ end
|
||||
|
||||
--- Minuet conditional options
|
||||
M.minuet = function()
|
||||
return func.check_global_var("aitool", "minuet", "neocodeium")
|
||||
return func.check_global_var('aitool', 'minuet', 'neocodeium')
|
||||
end
|
||||
|
||||
--- Music Controls conditional options
|
||||
M.musiccontrols = function()
|
||||
return func.check_global_var("usemusic", true, true)
|
||||
return func.check_global_var('usemusic', true, true)
|
||||
end
|
||||
|
||||
--- NekiFoch conditional options
|
||||
@@ -140,17 +140,17 @@ end
|
||||
--- Tabnine conditional options
|
||||
--- Codeium conditional options
|
||||
M.neocodeium = function()
|
||||
return func.check_global_var("aitool", "neocodeium", "neocodeium")
|
||||
return func.check_global_var('aitool', 'neocodeium', 'neocodeium')
|
||||
end
|
||||
|
||||
M.tabnine = function()
|
||||
return func.check_global_var("aitool", "tabnine", "neocodeium")
|
||||
return func.check_global_var('aitool', 'tabnine', 'neocodeium')
|
||||
end
|
||||
|
||||
M.todo = function()
|
||||
if func.check_global_var("usetodo", true, true) then
|
||||
if func.check_global_var('usetodo', true, true) then
|
||||
if vim.bo.readonly == false then
|
||||
if func.dir_is_git_repo(vim.fn.expand("%:p:h")) then
|
||||
if func.dir_is_git_repo(vim.fn.expand('%:p:h')) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
+8
-8
@@ -7,9 +7,9 @@
|
||||
local M = {}
|
||||
|
||||
-- Define default path to the logo art
|
||||
local logofile = vim.fn.stdpath("config") .. "/logo/" .. "neovim.txt"
|
||||
local logofile = vim.fn.stdpath('config') .. '/logo/' .. 'neovim.txt'
|
||||
if vim.g.dash_logo then
|
||||
logofile = vim.fn.stdpath("config") .. "/logo/" .. vim.g.dash_logo
|
||||
logofile = vim.fn.stdpath('config') .. '/logo/' .. vim.g.dash_logo
|
||||
end
|
||||
M.logo = logofile
|
||||
|
||||
@@ -25,7 +25,7 @@ local dashboard_buttons = {
|
||||
{ key = "c", icon = " ", desc = " Config", action = function() require("data.func").pick("config_files") end },
|
||||
{ key = "s", icon = " ", desc = " Restore Session", action = function() require("persistence").load() end },
|
||||
{ key = "S", icon = " ", desc = " Remote Session", action = function() require("config.rootiest").load_remote() end },
|
||||
{ key = "l", icon = " ", desc = " Lazy", action = function() vim.cmd("Lazy") end },
|
||||
{ key = "l", icon = " ", desc = " Lazy", action = function() vim.cmd("Lazy ") end },
|
||||
{ key = "q", icon = " ", desc = " Quit", action = function() vim.api.nvim_input("<cmd>qa<cr>") end },
|
||||
} -- stylua: ignore end
|
||||
|
||||
@@ -35,7 +35,7 @@ M.alpha = {
|
||||
---@return table dashboard The alpha dashboard options
|
||||
opts = function()
|
||||
-- Load the alpha plugin dashboard-nvim theme
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
local dashboard = require('alpha.themes.dashboard')
|
||||
|
||||
--- Function to read the ASCII art from the logo file
|
||||
---@param logo_path string The path to the logo file
|
||||
@@ -66,13 +66,13 @@ M.alpha = {
|
||||
end
|
||||
|
||||
for _, button in ipairs(dashboard.section.buttons.val) do
|
||||
button.opts.hl = "AlphaButtons"
|
||||
button.opts.hl_shortcut = "AlphaShortcut"
|
||||
button.opts.hl = 'AlphaButtons'
|
||||
button.opts.hl_shortcut = 'AlphaShortcut'
|
||||
end
|
||||
|
||||
-- Set up highlight groups for the dashboard
|
||||
dashboard.section.header.opts.hl = "Conditional" or "AlphaHeader"
|
||||
dashboard.section.footer.opts.hl = "AlphaFooter"
|
||||
dashboard.section.header.opts.hl = 'Conditional' or 'AlphaHeader'
|
||||
dashboard.section.footer.opts.hl = 'AlphaFooter'
|
||||
|
||||
-- Calculate the dashboard layout padding
|
||||
local padding = 0
|
||||
|
||||
+59
-59
@@ -7,157 +7,157 @@
|
||||
local M = {}
|
||||
|
||||
M.avante = {
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
'stevearc/dressing.nvim',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'MunifTanjim/nui.nvim',
|
||||
}
|
||||
|
||||
M.chatgpt = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"folke/trouble.nvim",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
'MunifTanjim/nui.nvim',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'folke/trouble.nvim',
|
||||
'nvim-telescope/telescope.nvim',
|
||||
}
|
||||
|
||||
--- nvim-cmp dependencies
|
||||
---@return table The nvim-cmp dependencies
|
||||
M.cmp = {
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
'L3MON4D3/LuaSnip',
|
||||
--- Function to build the dependencies
|
||||
---@return string|nil The command to build the dependencies
|
||||
build = (function()
|
||||
if vim.fn.has("win32") == 1 or vim.fn.executable("make") == 0 then
|
||||
if vim.fn.has('win32') == 1 or vim.fn.executable('make') == 0 then
|
||||
return
|
||||
end
|
||||
return "make install_jsregexp"
|
||||
return 'make install_jsregexp'
|
||||
end)(),
|
||||
dependencies = {
|
||||
{
|
||||
"rafamadriz/friendly-snippets",
|
||||
'rafamadriz/friendly-snippets',
|
||||
config = function()
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
require('luasnip.loaders.from_vscode').lazy_load()
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"petertriho/cmp-git",
|
||||
'petertriho/cmp-git',
|
||||
opts = {},
|
||||
--- Function to configure the cmp-git dependency
|
||||
---@return table|nil The cmp-git config
|
||||
config = function()
|
||||
local cmp = require("cmp")
|
||||
cmp.setup.filetype("gitcommit", {
|
||||
local cmp = require('cmp')
|
||||
cmp.setup.filetype('gitcommit', {
|
||||
sources = cmp.config.sources({
|
||||
{ name = "git", priority = 50 },
|
||||
{ name = "path", priority = 40 },
|
||||
{ name = 'git', priority = 50 },
|
||||
{ name = 'path', priority = 40 },
|
||||
}, {
|
||||
{ name = "buffer", priority = 50 },
|
||||
{ name = 'buffer', priority = 50 },
|
||||
}),
|
||||
})
|
||||
end,
|
||||
},
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-path",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"onsails/lspkind.nvim",
|
||||
'saadparwaiz1/cmp_luasnip',
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
'hrsh7th/cmp-path',
|
||||
'hrsh7th/cmp-buffer',
|
||||
'onsails/lspkind.nvim',
|
||||
-- "hrsh7th/cmp-emoji",
|
||||
"hrsh7th/cmp-cmdline",
|
||||
"dmitmel/cmp-cmdline-history",
|
||||
"teramako/cmp-cmdline-prompt.nvim",
|
||||
"mtoohey31/cmp-fish",
|
||||
"vim-dadbod-completion",
|
||||
'hrsh7th/cmp-cmdline',
|
||||
'dmitmel/cmp-cmdline-history',
|
||||
'teramako/cmp-cmdline-prompt.nvim',
|
||||
'mtoohey31/cmp-fish',
|
||||
'vim-dadbod-completion',
|
||||
{
|
||||
"chrisgrieser/cmp_yanky",
|
||||
'chrisgrieser/cmp_yanky',
|
||||
option = {
|
||||
onlyCurrentFiletype = false,
|
||||
},
|
||||
},
|
||||
"SergioRibera/cmp-dotenv",
|
||||
"hrsh7th/cmp-calc",
|
||||
"davidsierradz/cmp-conventionalcommits",
|
||||
'SergioRibera/cmp-dotenv',
|
||||
'hrsh7th/cmp-calc',
|
||||
'davidsierradz/cmp-conventionalcommits',
|
||||
-- "Dynge/gitmoji.nvim",
|
||||
}
|
||||
|
||||
--- Gx plugin dependencies
|
||||
M.gx = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
'nvim-lua/plenary.nvim',
|
||||
}
|
||||
|
||||
--- Hardtime plugin dependencies
|
||||
M.hardtime = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
'MunifTanjim/nui.nvim',
|
||||
'nvim-lua/plenary.nvim',
|
||||
}
|
||||
|
||||
--- LazyGit plugin dependencies
|
||||
M.lazygit = {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
'nvim-telescope/telescope.nvim',
|
||||
'nvim-lua/plenary.nvim',
|
||||
}
|
||||
|
||||
--- Lualine plugin dependencies
|
||||
M.lualine = {
|
||||
{ "bezhermoso/todos-lualine.nvim" },
|
||||
{ "folke/todo-comments.nvim" },
|
||||
{ 'bezhermoso/todos-lualine.nvim' },
|
||||
{ 'folke/todo-comments.nvim' },
|
||||
}
|
||||
|
||||
--- Minuet plugin dependencies
|
||||
M.minuet = {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ 'nvim-lua/plenary.nvim' },
|
||||
}
|
||||
|
||||
--- MusicControls plugin dependencies
|
||||
M.musiccontrols = {
|
||||
"rcarriga/nvim-notify",
|
||||
'rcarriga/nvim-notify',
|
||||
}
|
||||
|
||||
--- Table for plugins that need Telescope as a dependency
|
||||
M.needs_telescope = {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
'nvim-telescope/telescope.nvim',
|
||||
}
|
||||
|
||||
--- Table for plugins that need Treesitter as a dependency
|
||||
M.needs_treesitter = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
}
|
||||
|
||||
--- Neotest plugin adapters and dependencies
|
||||
M.neotest = {
|
||||
adapters = {
|
||||
"neotest-plenary",
|
||||
"neotest-python",
|
||||
"neotest-vim-test",
|
||||
"neotest-minitest",
|
||||
"neotest-bash",
|
||||
'neotest-plenary',
|
||||
'neotest-python',
|
||||
'neotest-vim-test',
|
||||
'neotest-minitest',
|
||||
'neotest-bash',
|
||||
},
|
||||
deps = {
|
||||
"nvim-neotest/nvim-nio",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"zidhuss/neotest-minitest",
|
||||
"rcasia/neotest-bash",
|
||||
"antoinemadec/FixCursorHold.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
'nvim-neotest/nvim-nio',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'zidhuss/neotest-minitest',
|
||||
'rcasia/neotest-bash',
|
||||
'antoinemadec/FixCursorHold.nvim',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
},
|
||||
}
|
||||
|
||||
--- Recorder plugin dependencies
|
||||
M.recorder = {
|
||||
"rcarriga/nvim-notify",
|
||||
'rcarriga/nvim-notify',
|
||||
}
|
||||
|
||||
--- nvim-remote plugin dependencies
|
||||
M.remotenvim = {
|
||||
"nvim-lua/plenary.nvim", -- For standard functions
|
||||
"MunifTanjim/nui.nvim", -- To build the plugin UI
|
||||
"nvim-telescope/telescope.nvim", -- For picking b/w different remote methods
|
||||
'nvim-lua/plenary.nvim', -- For standard functions
|
||||
'MunifTanjim/nui.nvim', -- To build the plugin UI
|
||||
'nvim-telescope/telescope.nvim', -- For picking b/w different remote methods
|
||||
}
|
||||
|
||||
--- Zenbones plugin dependencies
|
||||
M.zenbones = {
|
||||
"rktjmp/lush.nvim",
|
||||
'rktjmp/lush.nvim',
|
||||
}
|
||||
|
||||
return M
|
||||
|
||||
+13
-13
@@ -6,42 +6,42 @@
|
||||
local M = {}
|
||||
|
||||
--- DEFAULT ---
|
||||
M.default = "VeryLazy"
|
||||
M.default = 'VeryLazy'
|
||||
|
||||
--- Alpha events
|
||||
M.alpha = { "VimEnter" }
|
||||
M.alpha = { 'VimEnter' }
|
||||
|
||||
--- Auto Save events
|
||||
M.autosave = { "InsertLeave", "TextChanged" }
|
||||
M.autosave = { 'InsertLeave', 'TextChanged' }
|
||||
|
||||
--- Colorful Window Separators events
|
||||
M.colorfulwinsep = { "WinLeave" }
|
||||
M.colorfulwinsep = { 'WinLeave' }
|
||||
|
||||
--- Dashboard-Nvim events
|
||||
M.dashboard = { "UIEnter" }
|
||||
M.dashboard = { 'UIEnter' }
|
||||
|
||||
--- Dead Column
|
||||
M.deadcolumn = { "BufEnter" }
|
||||
M.deadcolumn = { 'BufEnter' }
|
||||
|
||||
--- Heirline events
|
||||
M.heirline = { "UIEnter" }
|
||||
M.heirline = { 'UIEnter' }
|
||||
|
||||
--- Highlight Colors events
|
||||
M.highlightcolor = { "BufReadPre" }
|
||||
M.highlightcolor = { 'BufReadPre' }
|
||||
|
||||
--- Mini.Align events
|
||||
M.minialign = { "InsertEnter" }
|
||||
M.minialign = { 'InsertEnter' }
|
||||
|
||||
--- Mini.SplitJoin events
|
||||
M.minisplitjoin = { "InsertEnter" }
|
||||
M.minisplitjoin = { 'InsertEnter' }
|
||||
|
||||
--- Discord Presence events
|
||||
M.presence = { "BufReadPre" }
|
||||
M.presence = { 'BufReadPre' }
|
||||
|
||||
--- RipGrep Substitute events
|
||||
M.ripsub = { "InsertEnter" }
|
||||
M.ripsub = { 'InsertEnter' }
|
||||
|
||||
--- SmoothCursor events
|
||||
M.smoothcursor = { "BufEnter" }
|
||||
M.smoothcursor = { 'BufEnter' }
|
||||
|
||||
return M
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
local M = {}
|
||||
|
||||
M.helpview = "help"
|
||||
M.helpview = 'help'
|
||||
|
||||
return M
|
||||
|
||||
+380
-380
File diff suppressed because it is too large
Load Diff
+14
-14
@@ -3,16 +3,16 @@
|
||||
local data = {}
|
||||
|
||||
-- Explicitly specify for LSP support
|
||||
data.keys = require("data.keys")
|
||||
data.types = require("data.types")
|
||||
data.func = require("data.func")
|
||||
data.cmd = require("data.cmd")
|
||||
data.deps = require("data.deps")
|
||||
data.dash = require("data.dash")
|
||||
data.ft = require("data.ft")
|
||||
data.events = require("data.events")
|
||||
data.autocmd = require("data.autocmd")
|
||||
data.cond = require("data.cond")
|
||||
data.keys = require('data.keys')
|
||||
data.types = require('data.types')
|
||||
data.func = require('data.func')
|
||||
data.cmd = require('data.cmd')
|
||||
data.deps = require('data.deps')
|
||||
data.dash = require('data.dash')
|
||||
data.ft = require('data.ft')
|
||||
data.events = require('data.events')
|
||||
data.autocmd = require('data.autocmd')
|
||||
data.cond = require('data.cond')
|
||||
|
||||
-- Generic function to iterate over files in a specified directory and load Lua modules
|
||||
function data.load_modules_from_dir(directory, module_prefix)
|
||||
@@ -21,11 +21,11 @@ function data.load_modules_from_dir(directory, module_prefix)
|
||||
|
||||
for _, file in ipairs(files) do
|
||||
-- Skip init.lua
|
||||
if file ~= "init.lua" and file:match(".*%.lua$") then
|
||||
if file ~= 'init.lua' and file:match('.*%.lua$') then
|
||||
-- Get the module name without the .lua extension
|
||||
local module_name = file:sub(1, -5)
|
||||
-- Construct the module path
|
||||
local module_path = module_prefix .. "." .. module_name
|
||||
local module_path = module_prefix .. '.' .. module_name
|
||||
-- Load the module if not already explicitly set
|
||||
if not _G[module_name] then
|
||||
_G[module_name] = require(module_path)
|
||||
@@ -37,9 +37,9 @@ end
|
||||
-- Example usage
|
||||
local function read_data_dir()
|
||||
-- Getting the root path for the current module directory
|
||||
local dir_path = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":h")
|
||||
local dir_path = vim.fn.fnamemodify(debug.getinfo(1, 'S').source:sub(2), ':h')
|
||||
-- Load modules from the data directory
|
||||
data.load_modules_from_dir(dir_path, "data")
|
||||
data.load_modules_from_dir(dir_path, 'data')
|
||||
end
|
||||
|
||||
-- Read the directory and load any additional modules
|
||||
|
||||
+740
-738
File diff suppressed because it is too large
Load Diff
+706
-706
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user