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
@@ -53,19 +53,19 @@
---━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ROOTIEST ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Rootiest Configuration
require("config.rootiest").setup() -- Set up Rootiest options
require('config.rootiest').setup() -- Set up Rootiest options
---━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ LAZY ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Load Lazy package manager and plugins
require("config.lazy") -- Bootstrap lazy.nvim and initialize plugins
require('config.lazy') -- Bootstrap lazy.nvim and initialize plugins
---━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ROCKS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Load LuaRocks package manager and plugins
require("config.rocks") -- Bootstrap LuaRocks and initialize plugins
require('config.rocks') -- Bootstrap LuaRocks and initialize plugins
---━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ PROFILING ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Load profiling package
require("config.profile") -- Set profiling options with environment variables:
require('config.profile') -- Set profiling options with environment variables:
-- ╭─────────────────────────────────────────────────────────────────────╮
-- │ NVIM_PROFILE=1 Start profiling at startup │
-- │ NVIM_PROFILE_MODULE="lualine" Set profiling target module │
+24 -24
View File
@@ -7,47 +7,47 @@ local autogrp = vim.api.nvim_create_augroup
local autocmd = vim.api.nvim_create_autocmd
-- LazyGit root detection
if pcall(require, "lazygit.utils") then
autocmd("BufEnter", {
pattern = "*",
if pcall(require, 'lazygit.utils') then
autocmd('BufEnter', {
pattern = '*',
callback = function()
require("lazygit.utils").project_root_dir()
require('lazygit.utils').project_root_dir()
end,
})
end
-- ━━━━━━━━━━━━━━━━━━━━━━━ Set up Qalc keymappings ━━━━━━━━━━━━━━━━━━━━━━━
if pcall(require, "qalc") then
if pcall(require, 'qalc') then
-- Create a group for filetype-specific mappings
autogrp("QalcFileTypeMappings", { clear = true })
autogrp('QalcFileTypeMappings', { clear = true })
-- Create an autocommand for the qalc filetype
autocmd("FileType", {
pattern = "qalc",
group = "QalcFileTypeMappings",
autocmd('FileType', {
pattern = 'qalc',
group = 'QalcFileTypeMappings',
callback = function()
-- Set the key mapping: 'y' to run the :QalcYank command in normal mode
vim.keymap.set( -- Yank Result
"n",
"y",
":QalcYank +<CR>",
'n',
'y',
':QalcYank +<CR>',
{ noremap = true, silent = true }
)
-- Set the key mapping: 'q' to run the :QalcClose command in normal mode
vim.keymap.set( -- Close Qalc
"n",
"q",
":QalcClose<CR>",
'n',
'q',
':QalcClose<CR>',
{ noremap = true, silent = true }
)
end,
})
-- Define a custom command to close the Qalc buffer
vim.api.nvim_create_user_command("QalcClose", function()
vim.api.nvim_create_user_command('QalcClose', function()
local buf_name = vim.api.nvim_buf_get_name(0)
if buf_name ~= "" then
vim.cmd("bd!")
if buf_name ~= '' then
vim.cmd('bd!')
else
-- If the buffer has no name, just remove it without invoking :bd!
vim.api.nvim_buf_delete(0, { force = true })
@@ -56,19 +56,19 @@ if pcall(require, "qalc") then
end
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━ Set up highlights ━━━━━━━━━━━━━━━━━━━━━━━━━━
local load_highlight = require("utils.highlight")
local load_highlight = require('utils.highlight')
load_highlight.setup_autocommands()
load_highlight.setup_dashboard_highlight()
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━ Set up cpp picker ━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Adds a keymap for quicker picking when in cpp files
require("data.autocmd").cpp_picker()
require('data.autocmd').cpp_picker()
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━ Set up nvim_exec ━━━━━━━━━━━━━━━━━━━━━━━
-- Function to check and execute the NVIM_EXEC environment variable
local function execute_nvim_exec()
local exec_command = os.getenv("NVIM_EXEC")
local exec_command = os.getenv('NVIM_EXEC')
-- If NVIM_EXEC is set, execute the command
if exec_command then
@@ -77,9 +77,9 @@ local function execute_nvim_exec()
end
-- Define an autogroup for the autocmd
autogrp("NvimExec", { clear = true })
autogrp('NvimExec', { clear = true })
-- Define an autocmd to run the function at startup
autocmd("VimEnter", {
group = "NvimExec",
autocmd('VimEnter', {
group = 'NvimExec',
callback = execute_nvim_exec,
})
+12 -12
View File
@@ -10,49 +10,49 @@
-- be defined in a single central location
-- Add keymapper function
local add_keymap = require("data.func").add_keymap
local add_keymap = require('data.func').add_keymap
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━ Group Keybinds ━━━━━━━━━━━━━━━━━━━━━━━━
-- Add keymaps for menu groups
for _, item in ipairs(require("data.keys").groups) do
for _, item in ipairs(require('data.keys').groups) do
add_keymap(item)
end
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━ General Keybinds ━━━━━━━━━━━━━━━━━━━━━━━
-- Add keymaps for miscellaneous keybinds
for _, item in ipairs(require("data.keys").misc) do
for _, item in ipairs(require('data.keys').misc) do
add_keymap(item)
end
-- ━━━━━━━━━━━━━━━━━━━━━━━━━ Telescope Keybinds ━━━━━━━━━━━━━━━━━━━━━━
-- Add keymaps for telescope symbols
for _, item in ipairs(require("data.keys").telescope.symbols) do
for _, item in ipairs(require('data.keys').telescope.symbols) do
add_keymap(item)
end
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━ Resizing splits ━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Add keymaps for resizing splits
for _, map in ipairs(require("data.keys").splits.resize) do
add_keymap(map[1], map[2], map[3], require("data.types").all_modes)
for _, map in ipairs(require('data.keys').splits.resize) do
add_keymap(map[1], map[2], map[3], require('data.types').all_modes)
end
-- ━━━━━━━━━━━━━━━━━━━━━━━━ Moving between splits ━━━━━━━━━━━━━━━━━━━━━━━━
-- Add keymaps for moving between splits
for _, map in ipairs(require("data.keys").splits.move) do
add_keymap(map[1], map[2], map[3], require("data.types").all_modes)
for _, map in ipairs(require('data.keys').splits.move) do
add_keymap(map[1], map[2], map[3], require('data.types').all_modes)
end
-- ━━━━━━━━━━━━━━━━━━ Swapping buffers between windows ━━━━━━━━━━━━━━━
-- Add keymaps for swapping buffers
for _, map in ipairs(require("data.keys").splits.swap) do
add_keymap(map[1], map[2], map[3], require("data.types").all_modes)
for _, map in ipairs(require('data.keys').splits.swap) do
add_keymap(map[1], map[2], map[3], require('data.types').all_modes)
end
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ MultiCursor ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-- Add keymaps for multicursor
for _, item in ipairs(require("data.keys").multicursor) do
for _, item in ipairs(require('data.keys').multicursor) do
add_keymap(item)
end
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Overrides ━━━━━━━━━━━━━━━━━━━━━━━━━━
require("config.overrides")
require('config.overrides')
+14 -13
View File
@@ -4,7 +4,7 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Lazy │
-- ╰─────────────────────────────────────────────────────────╯
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.uv.fs_stat(lazypath) then
-- stylua: ignore
vim.fn.system({
@@ -21,27 +21,28 @@ vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
local plugin_specs = {
{
"LazyVim/LazyVim", -- LazyVim
import = "lazyvim.plugins", -- LazyVim Core Plugins
'LazyVim/LazyVim', -- LazyVim
import = 'lazyvim.plugins', -- LazyVim Core Plugins
},
{ -- VSCode
import = "lazyvim.plugins.extras.vscode",
import = 'lazyvim.plugins.extras.vscode',
},
{ import = "plugins" }, -- General Plugins
{ import = 'plugins' }, -- General Plugins
}
-- Automatically import all subdirectories of `lua/plugins`
local plugin_dirs = vim.fn.glob("~/.config/nvim/lua/plugins/*", true, true)
local plugin_dirs = vim.fn.glob('~/.config/nvim/lua/plugins/*', true, true)
for _, dir in ipairs(plugin_dirs) do
if vim.fn.isdirectory(dir) == 1 then
table.insert( -- Add directory to the plugin import table
plugin_specs,
{ import = "plugins." .. vim.fn.fnamemodify(dir, ":t") }
{ import = 'plugins.' .. vim.fn.fnamemodify(dir, ':t') }
)
end
end
require("lazy").setup({
-- Initialize Lazy plugin manager
require('lazy').setup({
spec = plugin_specs,
rocks = {
hererocks = true,
@@ -52,12 +53,12 @@ require("lazy").setup({
},
install = {
missing = true,
colorscheme = { "catppuccin-mocha", "tokyonight", "default" },
colorscheme = { 'catppuccin-mocha', 'tokyonight', 'default' },
},
defaults = {
lazy = true,
version = nil,
event = "VeryLazy",
event = 'VeryLazy',
},
checker = {
-- automatically check for plugin updates
@@ -78,7 +79,7 @@ require("lazy").setup({
reset_packpath = true,
rtp = {
reset = true, -- reset the runtime path to $VIMRUNTIME and your config directory
disabled_plugins = require("data.types").lazy.disabled_plugins,
disabled_plugins = require('data.types').lazy.disabled_plugins,
},
},
profiling = {
@@ -86,7 +87,7 @@ require("lazy").setup({
require = true,
},
ui = {
border = "rounded",
title = " Plugin Manager ",
border = 'rounded',
title = ' Plugin Manager ',
},
})
+27 -27
View File
@@ -2,9 +2,9 @@
-- │ Setup Git Signs for Mini.Files │
-- ╰─────────────────────────────────────────────────────────╯
local nsMiniFiles = vim.api.nvim_create_namespace("mini_files_git")
local nsMiniFiles = vim.api.nvim_create_namespace('mini_files_git')
local autocmd = vim.api.nvim_create_autocmd
local _, MiniFiles = pcall(require, "mini.files")
local _, MiniFiles = pcall(require, 'mini.files')
-- Cache for git status
local gitStatusCache = {}
@@ -33,7 +33,7 @@ local function mapSymbols(status)
-- stylua: ignore end
}
local result = statusMap[status] or { symbol = "?", hlGroup = "NonText" }
local result = statusMap[status] or { symbol = '?', hlGroup = 'NonText' }
return result.symbol, result.hlGroup
end
@@ -48,7 +48,7 @@ local function fetchGitStatus(cwd, callback)
end
end
vim.system(
{ "git", "status", "--ignored", "--porcelain" },
{ 'git', 'status', '--ignored', '--porcelain' },
{ text = true, cwd = cwd },
on_exit
)
@@ -57,7 +57,7 @@ end
---@param str string?
local function escapePattern(str)
---@diagnostic disable-next-line: need-check-nil
return str:gsub("([%^%$%(%)%%%.%[%]%*%+%-%?])", "%%%1")
return str:gsub('([%^%$%(%)%%%.%[%]%*%+%-%?])', '%%%1')
end
---@param buf_id integer
@@ -66,10 +66,10 @@ end
local function updateMiniWithGit(buf_id, gitStatusMap)
vim.schedule(function()
local nlines = vim.api.nvim_buf_line_count(buf_id)
local cwd = vim.fs.root(buf_id, ".git")
local cwd = vim.fs.root(buf_id, '.git')
local escapedcwd = escapePattern(cwd)
if vim.fn.has("win32") == 1 then
escapedcwd = escapedcwd:gsub("\\", "/")
if vim.fn.has('win32') == 1 then
escapedcwd = escapedcwd:gsub('\\', '/')
end
for i = 1, nlines do
@@ -77,7 +77,7 @@ local function updateMiniWithGit(buf_id, gitStatusMap)
if not entry then
break
end
local relativePath = entry.path:gsub("^" .. escapedcwd .. "/", "")
local relativePath = entry.path:gsub('^' .. escapedcwd .. '/', '')
local status = gitStatusMap[relativePath]
if status then
@@ -99,19 +99,19 @@ end
local function parseGitStatus(content)
local gitStatusMap = {}
-- lua match is faster than vim.split (in my experience )
for line in content:gmatch("[^\r\n]+") do
local status, filePath = string.match(line, "^(..)%s+(.*)")
for line in content:gmatch('[^\r\n]+') do
local status, filePath = string.match(line, '^(..)%s+(.*)')
-- Split the file path into parts
local parts = {}
for part in filePath:gmatch("[^/]+") do
for part in filePath:gmatch('[^/]+') do
table.insert(parts, part)
end
-- Start with the root directory
local currentKey = ""
local currentKey = ''
for i, part in ipairs(parts) do
if i > 1 then
-- Concatenate parts with a separator to create a unique key
currentKey = currentKey .. "/" .. part
currentKey = currentKey .. '/' .. part
else
currentKey = part
end
@@ -133,11 +133,11 @@ end
---@return nil
local function updateGitStatus(buf_id)
---@diagnostic disable-next-line: param-type-mismatch
if not vim.fs.root(vim.uv.cwd(), ".git") then
if not vim.fs.root(vim.uv.cwd(), '.git') then
return
end
local cwd = vim.fn.expand("%:p:h")
local cwd = vim.fn.expand('%:p:h')
local currentTime = os.time()
if
gitStatusCache[cwd]
@@ -162,12 +162,12 @@ local function clearCache()
end
local function augroup(name)
return vim.api.nvim_create_augroup("MiniFiles_" .. name, { clear = true })
return vim.api.nvim_create_augroup('MiniFiles_' .. name, { clear = true })
end
autocmd("User", {
group = augroup("start"),
pattern = "MiniFilesExplorerOpen",
autocmd('User', {
group = augroup('start'),
pattern = 'MiniFilesExplorerOpen',
-- pattern = { "minifiles" },
callback = function()
local bufnr = vim.api.nvim_get_current_buf()
@@ -175,20 +175,20 @@ autocmd("User", {
end,
})
autocmd("User", {
group = augroup("close"),
pattern = "MiniFilesExplorerClose",
autocmd('User', {
group = augroup('close'),
pattern = 'MiniFilesExplorerClose',
callback = function()
clearCache()
end,
})
autocmd("User", {
group = augroup("update"),
pattern = "MiniFilesBufferUpdate",
autocmd('User', {
group = augroup('update'),
pattern = 'MiniFilesBufferUpdate',
callback = function(sii)
local bufnr = sii.data.buf_id
local cwd = vim.fn.expand("%:p:h")
local cwd = vim.fn.expand('%:p:h')
if gitStatusCache[cwd] then
updateMiniWithGit(bufnr, gitStatusCache[cwd].statusMap)
end
+14 -13
View File
@@ -3,14 +3,15 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Neovide │
-- ╰─────────────────────────────────────────────────────────╯
-- Set GUI font
vim.opt.guifont = "Iosevka Rootiest V2:#e-subpixelantialias:h12"
vim.opt.guifont = 'Iosevka Rootiest V2:#e-subpixelantialias:h12'
-- refresh rate and translucency
vim.g.neovide_refresh_rate = 120
vim.g.neovide_transparency = 0.85
vim.g.neovide_window_blurred = true
-- cursor fx
vim.g.neovide_cursor_vfx_mode = "pixiedust"
vim.g.neovide_cursor_vfx_mode = 'pixiedust'
vim.g.neovide_cursor_smooth_blink = true
vim.g.neovide_cursor_vfx_particle_density = 16.0
vim.g.neovide_cursor_vfx_particle_lifetime = 2.1
@@ -35,26 +36,26 @@ vim.g.neovide_padding_left = 0
-- ━━━━━━━━━━━━━━━━━━━━━━━━━ Clipboard mappings ━━━━━━━━━━━━━━━━━━━━━━
local modes = { "n", "v", "c", "i" }
local modes = { 'n', 'v', 'c', 'i' }
-- System clipboard mappings
for _, mode in ipairs(modes) do
if mode == "c" or mode == "i" then
vim.keymap.set(mode, "<C-v>", "<C-r>+", { silent = true })
vim.keymap.set(mode, "<C-c>", "<C-r>+", { silent = true })
if mode == 'c' or mode == 'i' then
vim.keymap.set(mode, '<C-v>', '<C-r>+', { silent = true })
vim.keymap.set(mode, '<C-c>', '<C-r>+', { silent = true })
else
vim.keymap.set(mode, "<C-v>", ":r !xsel -b<CR>", { silent = true })
vim.keymap.set(mode, "<C-c>", ":w !xsel -i -b<CR>", { silent = true })
vim.keymap.set(mode, '<C-v>', ':r !xsel -b<CR>', { silent = true })
vim.keymap.set(mode, '<C-c>', ':w !xsel -i -b<CR>', { silent = true })
end
end
-- Wezterm-style clipboard mappings (Control-Shift)
for _, mode in ipairs(modes) do
if mode == "c" or mode == "i" then
vim.keymap.set(mode, "<C-S-v>", "<C-r>+", { silent = true })
vim.keymap.set(mode, "<C-S-c>", "<C-r>+", { silent = true })
if mode == 'c' or mode == 'i' then
vim.keymap.set(mode, '<C-S-v>', '<C-r>+', { silent = true })
vim.keymap.set(mode, '<C-S-c>', '<C-r>+', { silent = true })
else
vim.keymap.set(mode, "<C-S-v>", ":r !xsel -b<CR>", { silent = true })
vim.keymap.set(mode, "<C-S-c>", ":w !xsel -i -b<CR>", { silent = true })
vim.keymap.set(mode, '<C-S-v>', ':r !xsel -b<CR>', { silent = true })
vim.keymap.set(mode, '<C-S-c>', ':w !xsel -i -b<CR>', { silent = true })
end
end
+17
View File
@@ -0,0 +1,17 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Neovim Updater Debug Functions │
-- ╰─────────────────────────────────────────────────────────╯
local D = {}
-- local P = require("nvim_updater")
local U = require('nvim_updater.utils')
function D.test_floating_window()
local output = U.run_hidden_command(
"cd ~/.local/src/neovim && git --no-pager log --pretty=format:'%s' HEAD..origin/master"
)
U.draw_floating_window(output)
end
return D
+6 -1
View File
@@ -8,6 +8,8 @@
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ KEYS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
vim.opt.foldlevel = 99
-- Set the mapleader variable to the space key
vim.g.mapleader = " " ---@type string Options: <leader>
@@ -68,7 +70,7 @@ vim.g.usetodo = false ---@type boolean Options: <true|
-- Use experimental cmp performance fork
vim.g.cmp_performance_enabled = true ---@type boolean Options: <true|false>
-- Use dev mode for rootiest plugins
vim.g.rootiest_dev = false ---@type boolean Options: <true|false>
vim.g.rootiest_dev = true ---@type boolean Options: <true|false>
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ PICKER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@@ -105,6 +107,9 @@ vim.g.useavante = true ---@type boolean Options: <true
-- Enable GP plugin for AI chat
vim.g.usegpai = false ---@type boolean Options: <true|false>
----- Use Blink instead of nvim-cmp -----
vim.g.useblinkcmp = true ---@type boolean Options: <true|false>
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STATUS COLUMN ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
vim.g.statuscolumn = "native" ---@type string Options: [statuscolumn]
+9 -9
View File
@@ -5,33 +5,33 @@
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━ Keymap Overrides ━━━━━━━━━━━━━━━━━━━━━━━
-- Add keymapper function
local add_keymap = require("data.func").add_keymap
local add_keymap = require('data.func').add_keymap
-- Add keymaps for overrides
add_keymap(require("data.keys").overrides)
add_keymap(require('data.keys').overrides)
-- Replace '...' with '…' (ellipsis) on InsertLeave
require("data.func").setup_replace_ellipsis(true)
require('data.func').setup_replace_ellipsis(true)
-- Search selected text in visual mode
add_keymap("/", "*<Esc>", "Search selected text", "v")
add_keymap('/', '*<Esc>', 'Search selected text', 'v')
-- Use modern cipher instead of rot13
add_keymap(require("data.keys").cipher.hex)
add_keymap(require('data.keys').cipher.hex)
-- Help keybinds
for _, item in ipairs(require("data.keys").help) do
for _, item in ipairs(require('data.keys').help) do
add_keymap(item)
end
-- Remap Command Mode List
require("data.keys").cmd_mode()
require('data.keys').cmd_mode()
-- ━━━━━━━━━━━━━━━━━━━━━━━━ Additional Overrides ━━━━━━━━━━━━━━━━━━━━━
if vim.g.is_termux then
if require("data.func").is_installed("neominimap") then
if require('data.func').is_installed('neominimap') then
-- Disable NeoMiniMap
vim.cmd("Neominimap off")
vim.cmd('Neominimap off')
end
end
+3 -3
View File
@@ -1,10 +1,10 @@
-- ━━━━━━━━━━━━━━━━━━━━━━━━ Post-Config Functions ━━━━━━━━━━━━━━━━━━━━━━━━
-- Setup blinky cursor
require("utils.blinky").setup(vim.g.blinky)
require('utils.blinky').setup(vim.g.blinky)
-- Setup nvim-remote
if vim.fn.executable("nvr") == 1 then
if vim.fn.executable('nvr') == 1 then
vim.env.GIT_EDITOR = "nvr -cc split --remote-wait +'set bufhidden=wipe'"
end
@@ -13,7 +13,7 @@ local prefix = vim.env.PREFIX
-- Check if prefix contains "com.termux"
if prefix ~= nil then
if prefix:match("com.termux") then
if prefix:match('com.termux') then
vim.g.useimage = false
vim.g.is_termux = true
end
+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')
+41 -41
View File
@@ -10,66 +10,66 @@ local M = {}
function M.bootstrap()
do
local rocks_config = {
rocks_path = vim.env.HOME .. "/.local/share/nvim/rocks",
rocks_path = vim.env.HOME .. '/.local/share/nvim/rocks',
}
vim.g.rocks_nvim = rocks_config
local luarocks_path = {
vim.fs.joinpath(rocks_config.rocks_path, "share", "lua", "5.1", "?.lua"),
vim.fs.joinpath(rocks_config.rocks_path, 'share', 'lua', '5.1', '?.lua'),
vim.fs.joinpath(
rocks_config.rocks_path,
"share",
"lua",
"5.1",
"?",
"init.lua"
'share',
'lua',
'5.1',
'?',
'init.lua'
),
}
package.path = package.path .. ";" .. table.concat(luarocks_path, ";")
package.path = package.path .. ';' .. table.concat(luarocks_path, ';')
local luarocks_cpath = {
vim.fs.joinpath(rocks_config.rocks_path, "lib", "lua", "5.1", "?.so"),
vim.fs.joinpath(rocks_config.rocks_path, "lib64", "lua", "5.1", "?.so"),
vim.fs.joinpath(rocks_config.rocks_path, 'lib', 'lua', '5.1', '?.so'),
vim.fs.joinpath(rocks_config.rocks_path, 'lib64', 'lua', '5.1', '?.so'),
-- Remove the dylib and dll paths if you do not need macos or windows support
vim.fs.joinpath(rocks_config.rocks_path, "lib", "lua", "5.1", "?.dylib"),
vim.fs.joinpath(rocks_config.rocks_path, 'lib', 'lua', '5.1', '?.dylib'),
vim.fs.joinpath(
rocks_config.rocks_path,
"lib64",
"lua",
"5.1",
"?.dylib"
'lib64',
'lua',
'5.1',
'?.dylib'
),
vim.fs.joinpath(rocks_config.rocks_path, "lib", "lua", "5.1", "?.dll"),
vim.fs.joinpath(rocks_config.rocks_path, "lib64", "lua", "5.1", "?.dll"),
vim.fs.joinpath(rocks_config.rocks_path, 'lib', 'lua', '5.1', '?.dll'),
vim.fs.joinpath(rocks_config.rocks_path, 'lib64', 'lua', '5.1', '?.dll'),
}
package.cpath = package.cpath .. ";" .. table.concat(luarocks_cpath, ";")
package.cpath = package.cpath .. ';' .. table.concat(luarocks_cpath, ';')
vim.opt.runtimepath:append(
vim.fs.joinpath(
rocks_config.rocks_path,
"lib",
"luarocks",
"rocks-5.1",
"rocks.nvim",
"*"
'lib',
'luarocks',
'rocks-5.1',
'rocks.nvim',
'*'
)
)
end
-- If rocks.nvim is not installed then install it!
if not pcall(require, "rocks") then
if not pcall(require, 'rocks') then
local rocks_location =
---@diagnostic disable-next-line: param-type-mismatch
vim.fs.joinpath(vim.fn.stdpath("cache"), "rocks.nvim")
vim.fs.joinpath(vim.fn.stdpath('cache'), 'rocks.nvim')
if not vim.uv.fs_stat(rocks_location) then
-- Pull down rocks.nvim
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/nvim-neorocks/rocks.nvim",
'git',
'clone',
'--filter=blob:none',
'https://github.com/nvim-neorocks/rocks.nvim',
rocks_location,
})
end
@@ -77,24 +77,24 @@ function M.bootstrap()
-- If the clone was successful then source the bootstrapping script
assert(
vim.v.shell_error == 0,
"rocks.nvim installation failed. Try exiting and re-entering Neovim!"
'rocks.nvim installation failed. Try exiting and re-entering Neovim!'
)
vim.cmd.source(vim.fs.joinpath(rocks_location, "bootstrap.lua"))
vim.cmd.source(vim.fs.joinpath(rocks_location, 'bootstrap.lua'))
vim.fn.delete(rocks_location, "rf")
vim.fn.delete(rocks_location, 'rf')
end
end
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━ Ensure Luarocks ━━━━━━━━━━━━━━━━━━━━━━━
function M.ensure_luarocks()
-- Check if 'luarocks' command is available
if os.execute("luarocks --version") ~= 0 then
if os.execute('luarocks --version') ~= 0 then
-- 'luarocks' is not installed, set up 'luarocks.nvim' plugin
local status_ok, lazy = pcall(require, "lazy")
local status_ok, lazy = pcall(require, 'lazy')
if not status_ok then
vim.notify(
"Lazy.nvim not found. Please install it to manage plugins.",
'Lazy.nvim not found. Please install it to manage plugins.',
vim.log.levels.ERROR
)
return
@@ -102,14 +102,14 @@ function M.ensure_luarocks()
lazy.setup({
{
"vhyrro/luarocks.nvim",
'vhyrro/luarocks.nvim',
priority = 1000, -- Ensure this plugin loads first
opts = {
rocks = { "magick" }, -- Example of a rock that you want to install
rocks = { 'magick' }, -- Example of a rock that you want to install
},
config = function()
-- Restart Neovim to apply changes after 'luarocks.nvim' sets up
vim.cmd("source $MYVIMRC | qa")
vim.cmd('source $MYVIMRC | qa')
end,
},
})
@@ -117,17 +117,17 @@ function M.ensure_luarocks()
end
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━ Rocks plugin spec ━━━━━━━━━━━━━━━━━━━━━━
M.plugin_spec = {
"vhyrro/luarocks.nvim",
'vhyrro/luarocks.nvim',
priority = 1000, -- Very high priority is required
opts = {
rocks = { "magick" }, -- specifies a list of rocks to install
rocks = { 'magick' }, -- specifies a list of rocks to install
},
}
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Load plugins ━━━━━━━━━━━━━━━━━━━━━━━━━
-- Load rocks package manager
M.load_rocks = function()
require("rocks")
require('rocks')
end
-- Perform setup
+36 -36
View File
@@ -10,18 +10,18 @@ local M = {}
---@param message string The error message to trigger
---@return boolean condition true if the error message was triggered, false otherwise
local function trigger_error(message)
return require("data").func.notify(message, "ERROR")
return require('data').func.notify(message, 'ERROR')
end
local function setup_os_vars()
-- Check if we are on windows
vim.g.is_windows = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1
vim.g.is_windows = vim.fn.has('win32') == 1 or vim.fn.has('win64') == 1
end
--- Yank line without leading/trailing whitespace
---@return nil
function M.yank_line()
vim.api.nvim_feedkeys("_v$hy$", "n", true)
vim.api.nvim_feedkeys('_v$hy$', 'n', true)
end
-- Variable to track if the precognition plugin has been called once
@@ -30,9 +30,9 @@ local precog_first_time = true
--- Toggle the precognition plugin
---@return nil
function M.toggle_precognition()
if pcall(require, "precognition") then
if pcall(require, 'precognition') then
-- Initialize precognition plugin
local precognition = require("precognition")
local precognition = require('precognition')
-- Toggle the plugin
if precog_first_time then
precognition.toggle()
@@ -42,19 +42,19 @@ function M.toggle_precognition()
precognition.toggle() -- Call toggle once
end
else
trigger_error("precognition plugin is not installed")
trigger_error('precognition plugin is not installed')
end
end
--- Toggle Hardtime and Precognition together
---@return nil
function M.toggle_hardmode()
if pcall(require, "hardtime") then
local hardtime = require("hardtime")
if pcall(require, 'hardtime') then
local hardtime = require('hardtime')
hardtime.toggle()
M.toggle_precognition()
else
trigger_error("hardtime plugin is not installed")
trigger_error('hardtime plugin is not installed')
end
end
@@ -63,18 +63,18 @@ end
---@param size number|nil The size of the terminal split (default: 0.3)
---@return boolean condition true if the terminal was toggled, false otherwise
function M.toggle_lazygit_term(direction, size)
if pcall(require, "toggleterm.terminal") then
local Terminal = require("toggleterm.terminal").Terminal
if pcall(require, 'toggleterm.terminal') then
local Terminal = require('toggleterm.terminal').Terminal
local lazygit = Terminal:new({
cmd = "lazygit",
cmd = 'lazygit',
hidden = true,
direction = direction or "horizontal", -- Set direction to horizontal split
direction = direction or 'horizontal', -- Set direction to horizontal split
size = size or 0.3, -- Set size to 30% of the screen
})
lazygit:toggle()
return true
else
trigger_error("toggleterm plugin is not installed")
trigger_error('toggleterm plugin is not installed')
return false
end
end
@@ -83,23 +83,23 @@ end
---@param my_args string|nil The arguments to pass to the lazygit command (default: nil)
---@return boolean condition true if the terminal was toggled, false otherwise
function M.toggle_lazygit_float(my_args)
if pcall(require, "toggleterm.terminal") then
local Util = require("lazyvim.util")
if pcall(require, 'toggleterm.terminal') then
local Util = require('lazyvim.util')
my_args = my_args or nil
if my_args ~= "" or my_args ~= nil then
if my_args ~= '' or my_args ~= nil then
Util.terminal.open(
{ "lazygit", my_args },
{ 'lazygit', my_args },
{ cwd = Util.root(), interactive = true, esc_esc = false }
)
else
Util.terminal.open(
{ "lazygit" },
{ 'lazygit' },
{ cwd = Util.root(), interactive = true, esc_esc = false }
)
end
return true
else
trigger_error("toggleterm plugin is not installed")
trigger_error('toggleterm plugin is not installed')
return false
end
end
@@ -107,13 +107,13 @@ end
--- Load remote-nvim plugin
---@return boolean condition true if the plugin was loaded, false otherwise
function M.load_remote()
if pcall(require, "remote-nvim") then
if pcall(require, 'remote-nvim') then
---@diagnostic disable-next-line: missing-parameter
require("remote-nvim").setup()
vim.cmd("RemoteStart")
require('remote-nvim').setup()
vim.cmd('RemoteStart')
return true
else
trigger_error("remote-nvim plugin is not installed")
trigger_error('remote-nvim plugin is not installed')
return false
end
end
@@ -122,19 +122,19 @@ end
--- @return boolean true if any text was pasted successfully, false otherwise
function M.YankAndPasteInQuotes()
-- Yank text inside quotes on the current line
vim.cmd("normal! yiq")
vim.cmd('normal! yiq')
-- Get the yanked text from the "0 register (the unnamed register)
local yanked_text = vim.fn.getreg('"')
-- List of marks to check ('a' to 'z')
local marks = "abcdefghijklmnopqrstuvwxyz"
local marks = 'abcdefghijklmnopqrstuvwxyz'
-- Flag to track if any pasting was successful
local was_pasted = false
-- Loop through each mark
for mark in marks:gmatch(".") do
for mark in marks:gmatch('.') do
-- Check if the mark exists (returns the line number or nil)
local position = vim.fn.getpos("'" .. mark)
@@ -143,8 +143,8 @@ function M.YankAndPasteInQuotes()
vim.cmd("normal! '" .. mark)
-- Select text inside quotes and paste the yanked text
vim.cmd("normal! viq")
vim.cmd('normal! "' .. yanked_text .. "P")
vim.cmd('normal! viq')
vim.cmd('normal! "' .. yanked_text .. 'P')
-- Set the flag to true since pasting was successful
was_pasted = true
@@ -159,7 +159,7 @@ end
---@return boolean condition true if Neovide is active, false otherwise
function M.eval_neovide()
if vim.g.neovide then
require("config.neovide")
require('config.neovide')
return true
else
return false
@@ -170,14 +170,14 @@ end
---@return nil
function M.define_commands()
-- Define Q as a usercmd
vim.api.nvim_create_user_command("Q", "qall", { desc = "Quit all buffers" })
vim.api.nvim_create_user_command('Q', 'qall', { desc = 'Quit all buffers' })
-- Define yank line command
vim.api.nvim_create_user_command("YankLine", function()
vim.api.nvim_create_user_command('YankLine', function()
M.yank_line()
end, { force = true, desc = "Yank line without leading whitespace" })
end, { force = true, desc = 'Yank line without leading whitespace' })
vim.api.nvim_create_user_command(
"YankAndPasteQuotes",
'YankAndPasteQuotes',
M.YankAndPasteInQuotes,
{}
)
@@ -190,9 +190,9 @@ function M.setup()
M.define_commands()
-- Setup types data
require("data.types").setup()
require('data.types').setup()
-- Setup indentor
require("utils.indentor")
require('utils.indentor')
end
return M
+20 -20
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -5,6 +5,6 @@
-- ╰─────────────────────────────────────────────────────────╯
local M = {}
M.helpview = "help"
M.helpview = 'help'
return M
+380 -380
View File
File diff suppressed because it is too large Load Diff
+14 -14
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff
+706 -706
View File
File diff suppressed because it is too large Load Diff
+33 -33
View File
@@ -6,57 +6,57 @@
return {
{ -- Neocodeium
"monkoose/neocodeium",
event = "VeryLazy",
opts = require("data.types").neocodeium.opts,
keys = require("data.keys").neocodeium,
cond = require("data.cond").neocodeium,
'monkoose/neocodeium',
event = 'VeryLazy',
opts = require('data.types').neocodeium.opts,
keys = require('data.keys').neocodeium,
cond = require('data.cond').neocodeium,
},
{ -- Codeium
import = "lazyvim.plugins.extras.coding.codeium",
cond = require("data.cond").codeium,
import = 'lazyvim.plugins.extras.coding.codeium',
cond = require('data.cond').codeium,
},
{ -- Copilot
import = "lazyvim.plugins.extras.coding.copilot",
cond = require("data.cond").copilot,
import = 'lazyvim.plugins.extras.coding.copilot',
cond = require('data.cond').copilot,
},
{ -- Tabnine
import = "lazyvim.plugins.extras.coding.tabnine",
cond = require("data.cond").tabnine,
import = 'lazyvim.plugins.extras.coding.tabnine',
cond = require('data.cond').tabnine,
},
{ -- Minuet-AI
"milanglacier/minuet-ai.nvim",
dependencies = require("data.deps").minuet,
opts = { provider = "openai" },
cond = require("data.cond").minuet,
'milanglacier/minuet-ai.nvim',
dependencies = require('data.deps').minuet,
opts = { provider = 'openai' },
cond = require('data.cond').minuet,
},
{ -- ChatGPT
"jackMort/ChatGPT.nvim",
event = "VeryLazy",
cond = require("data.cond").chatgpt,
keys = require("data.keys").chatgpt.func,
opts = require("data.types").chatgpt,
dependencies = require("data.deps").chatgpt,
'jackMort/ChatGPT.nvim',
event = 'VeryLazy',
cond = require('data.cond').chatgpt,
keys = require('data.keys').chatgpt.func,
opts = require('data.types').chatgpt,
dependencies = require('data.deps').chatgpt,
},
{ -- GP
"robitx/gp.nvim",
cond = require("data.cond").gp,
'robitx/gp.nvim',
cond = require('data.cond').gp,
lazy = false,
opts = require("data.types").gp,
keys = require("data.keys").gp.func,
opts = require('data.types').gp,
keys = require('data.keys').gp.func,
},
{ -- Avante
"yetone/avante.nvim",
cond = require("data.cond").avante,
event = "VeryLazy",
'yetone/avante.nvim',
cond = require('data.cond').avante,
event = 'VeryLazy',
lazy = false,
opts = require("data.types").avante,
build = "make",
dependencies = require("data.deps").avante,
opts = require('data.types').avante,
build = 'make',
dependencies = require('data.deps').avante,
keys = function()
-- Add keymaps for Avante group
for _, item in ipairs(require("data.keys").group.avante) do
require("data.func").add_keymap(item)
for _, item in ipairs(require('data.keys').group.avante) do
require('data.func').add_keymap(item)
end
end,
},
+10 -9
View File
@@ -3,18 +3,19 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Astral Plugin │
-- ╰─────────────────────────────────────────────────────────╯
return { -- Astral
"rootiest/astral.nvim",
version = "*", -- Pin to GitHub releases
enabled = require("data.func").check_global_var("use_astral", true, true),
'rootiest/astral.nvim',
version = '*', -- Pin to GitHub releases
enabled = require('data.func').check_global_var('use_astral', true, true),
opts = {
fallback_themes = {
"catppuccin-macchiato",
"catppuccin-frappe",
"tokyonight",
"kanagawa",
"monochrome",
"default",
'catppuccin-macchiato',
'catppuccin-frappe',
'tokyonight',
'kanagawa',
'monochrome',
'default',
},
},
dev = vim.g.rootiest_dev or false, -- Use local codebase
+5 -5
View File
@@ -4,10 +4,10 @@
return {
{ -- Auto-save
"okuuva/auto-save.nvim",
cmd = require("data.cmd").autosave,
event = { "InsertLeave", "TextChanged" },
opts = require("data.types").autosave,
cond = require("data.cond").autosave,
'okuuva/auto-save.nvim',
cmd = require('data.cmd').autosave,
event = { 'InsertLeave', 'TextChanged' },
opts = require('data.types').autosave,
cond = require('data.cond').autosave,
},
}
+69 -70
View File
@@ -3,6 +3,7 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Auto Completion │
-- ╰─────────────────────────────────────────────────────────╯
local perf = vim.g.cmp_performance_enabled or false
--- Function to return the cmp provider
---@param performance? boolean Whether to use the experimental cmp performance fork
@@ -11,42 +12,44 @@ local function cmp_provider(performance)
if performance then
return {
-- Experiemental cmp performance fork
url = "hrsh7th/nvim-cmp",
url = 'hrsh7th/nvim-cmp',
--url = "iguanacucumber/magazine.nvim",
dev = true,
}
else
return {
-- Classic cmp
url = "hrsh7th/nvim-cmp",
url = 'hrsh7th/nvim-cmp',
dev = false,
}
end
end
local cmp_repo = cmp_provider(perf)
-- Else use classic cmp
return { -- cmp
url = cmp_repo.url,
build = cmp_repo.build,
branch = cmp_repo.branch,
dev = cmp_repo.dev,
event = "VeryLazy",
dependencies = require("data.deps").cmp,
event = 'VeryLazy',
dependencies = require('data.deps').cmp,
config = function()
local cmp = require("cmp")
local luasnip = require("luasnip")
cmp.event:on("menu_opened", function()
if require("data.cond").neocodeium() == true then
require("neocodeium").clear()
local cmp = require('cmp')
local luasnip = require('luasnip')
cmp.event:on('menu_opened', function()
if require('data.cond').neocodeium() == true then
require('neocodeium').clear()
end
end)
cmp.event:on("menu_closed", function()
if require("data.cond").neocodeium() == true then
require("neocodeium.commands").enable()
require("neocodeium").cycle_or_complete()
cmp.event:on('menu_closed', function()
if require('data.cond').neocodeium() == true then
require('neocodeium.commands').enable()
require('neocodeium').cycle_or_complete()
end
end)
local border_opts = {
border = vim.g.completion_borders or "rounded",
border = vim.g.completion_borders or 'rounded',
}
local window_opts = {
completion = cmp.config.window.bordered(border_opts),
@@ -60,7 +63,7 @@ return { -- cmp
and vim.api
.nvim_buf_get_lines(0, line - 1, line, true)[1]
:sub(col, col)
:match("%s")
:match('%s')
== nil
end
cmp.setup({
@@ -69,22 +72,22 @@ return { -- cmp
luasnip.lsp_expand(args.body)
end,
},
completion = { completeopt = "menu,menuone,noinsert" },
window = vim.g.completion_borders == "rounded" and window_opts or {},
completion = { completeopt = 'menu,menuone,noinsert' },
window = vim.g.completion_borders == 'rounded' and window_opts or {},
mapping = cmp.mapping.preset.insert({
["<C-n>"] = cmp.mapping.select_next_item(),
["<C-p>"] = cmp.mapping.select_prev_item(),
["<Up>"] = cmp.mapping.select_prev_item({
['<C-n>'] = cmp.mapping.select_next_item(),
['<C-p>'] = cmp.mapping.select_prev_item(),
['<Up>'] = cmp.mapping.select_prev_item({
behavior = cmp.SelectBehavior.Select,
}),
["<Down>"] = cmp.mapping.select_next_item({
['<Down>'] = cmp.mapping.select_next_item({
behavior = cmp.SelectBehavior.Select,
}),
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-y>"] = cmp.mapping.confirm({ select = true }),
["<C-Space>"] = cmp.mapping.complete({}),
["<Tab>"] = cmp.mapping(function(fallback)
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
['<C-Space>'] = cmp.mapping.complete({}),
['<Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif luasnip.expand_or_locally_jumpable() then
@@ -98,8 +101,8 @@ return { -- cmp
else
fallback()
end
end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback)
end, { 'i', 's' }),
['<S-Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif luasnip.locally_jumpable(-1) then
@@ -111,42 +114,38 @@ return { -- cmp
else
fallback()
end
end, { "i", "s" }),
end, { 'i', 's' }),
}),
sources = {
{ name = "nvim_lsp", priority = 1000 },
{ name = "luasnip", priority = 750 },
{ name = "path", priority = 250 },
{ name = "buffer", priority = 250 },
{ name = "cmp_yanky" },
{ name = "dotenv" },
{ name = "calc" },
{ name = "conventionalcommits" },
-- { name = "nerd", priority = 9997 },
-- { name = "gitmoji", priority = 9998 },
-- { name = "emoji", priority = 9999 },
-- { name = "math", priority = 9999 },
{ name = 'nvim_lsp', priority = 1000 },
{ name = 'luasnip', priority = 750 },
{ name = 'path', priority = 250 },
{ name = 'buffer', priority = 250 },
{ name = 'cmp_yanky' },
{ name = 'dotenv' },
{ name = 'calc' },
{ name = 'conventionalcommits' },
},
formatting = {
fields = { "abbr", "kind", "menu" },
fields = { 'abbr', 'kind', 'menu' },
expandable_indicator = true,
format = function(entry, item)
local custom_menu_icon = {
calc = "󰃬 Calculator",
math = " Math",
nerd = " Glyphs",
gitmoji = " Gitmoji",
emoji = "󰞅 Emoji",
conventionalcommits = " Commit Message",
path = " Path",
buffer = "󰓩 Buffer",
dotenv = " Dotenv",
cmp_yanky = " History",
calc = '󰃬 Calculator',
math = ' Math',
nerd = ' Glyphs',
gitmoji = ' Gitmoji',
emoji = '󰞅 Emoji',
conventionalcommits = ' Commit Message',
path = ' Path',
buffer = '󰓩 Buffer',
dotenv = ' Dotenv',
cmp_yanky = ' History',
}
local color_item =
require("nvim-highlight-colors").format(entry, { kind = item.kind })
item = require("lspkind").cmp_format({
require("tailwind-tools.cmp").lspkind_format,
require('nvim-highlight-colors').format(entry, { kind = item.kind })
item = require('lspkind').cmp_format({
require('tailwind-tools.cmp').lspkind_format,
})(entry, item)
if color_item.abbr_hl_group then
item.kind_hl_group = color_item.abbr_hl_group
@@ -161,42 +160,42 @@ return { -- cmp
},
})
-- `:` cmdline setup.
cmp.setup.cmdline(":", {
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },
{ name = 'path' },
}, {
{
name = "cmdline",
name = 'cmdline',
option = {
ignore_cmds = { "Man", "!" },
ignore_cmds = { 'Man', '!' },
},
},
}, { name = "cmp-cmdline-history" }, {
name = "cmp-cmdline-prompt",
}, { name = 'cmp-cmdline-history' }, {
name = 'cmp-cmdline-prompt',
}),
})
-- Additional setup for cmdline filetype
cmp.setup.filetype("cmdline", {
cmp.setup.filetype('cmdline', {
sources = {
{ name = "cmdline" }, -- Ensure 'cmdline' source is available
{ name = "path" },
{ name = "cmp-cmdline-history" },
{ name = "cmp-cmdline-prompt" },
{ name = 'cmdline' }, -- Ensure 'cmdline' source is available
{ name = 'path' },
{ name = 'cmp-cmdline-history' },
{ name = 'cmp-cmdline-prompt' },
},
})
-- Input filetype
cmp.setup.filetype("input", {
cmp.setup.filetype('input', {
sources = {},
})
-- Custom filetype configuration
cmp.setup.filetype("config", {
cmp.setup.filetype('config', {
sources = vim.tbl_filter(function(source)
return source.name ~= "emoji" and source.name ~= "gitmoji"
return source.name ~= 'emoji' and source.name ~= 'gitmoji'
end, cmp.get_config().sources),
})
-- List of filetypes to disable completion
local disabled_filetypes = require("data.types").cmp
local disabled_filetypes = require('data.types').cmp
for _, filetype in ipairs(disabled_filetypes) do
cmp.setup.filetype(filetype, {
sources = {},
+45 -44
View File
@@ -5,105 +5,106 @@
-- ╰─────────────────────────────────────────────────────────╯
return {
-- { import = "lazyvim.plugins.extras.coding.blink" },
{ -- Mason-lspconfig
"williamboman/mason-lspconfig.nvim",
opts = require("data.types").mason_lsp_config.opts,
'williamboman/mason-lspconfig.nvim',
opts = require('data.types').mason_lsp_config.opts,
},
{ -- luasnip
import = "lazyvim.plugins.extras.coding.luasnip",
import = 'lazyvim.plugins.extras.coding.luasnip',
},
{ -- nvim-treesitter
"nvim-treesitter/nvim-treesitter",
opts = require("data.types").treesitter.opts,
'nvim-treesitter/nvim-treesitter',
opts = require('data.types').treesitter.opts,
},
{ -- nvim-lspconfig
"neovim/nvim-lspconfig",
opts = require("data.types").lspconfig.opts,
'neovim/nvim-lspconfig',
opts = require('data.types').lspconfig.opts,
},
{ -- Yanky
import = "lazyvim.plugins.extras.coding.yanky",
import = 'lazyvim.plugins.extras.coding.yanky',
},
{ -- Yanky
"gbprod/yanky.nvim",
requires = { "kkharji/sqlite.lua" },
opts = require("data.types").yanky,
keys = require("data.keys").yanky,
'gbprod/yanky.nvim',
requires = { 'kkharji/sqlite.lua' },
opts = require('data.types').yanky,
keys = require('data.keys').yanky,
},
{ -- Neogen
import = "lazyvim.plugins.extras.coding.neogen",
import = 'lazyvim.plugins.extras.coding.neogen',
},
{
"folke/lazydev.nvim",
'folke/lazydev.nvim',
opts = {
library = {
{ path = "luvit-meta/library", words = { "vim%.uv" } },
{ path = "LazyVim", words = { "LazyVim" } },
{ path = "lazy.nvim", words = { "LazyVim" } },
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
{ path = 'LazyVim', words = { 'LazyVim' } },
{ path = 'lazy.nvim', words = { 'LazyVim' } },
-- Load the wezterm types when the `wezterm` module is required
-- Needs `justinsgithub/wezterm-types` to be installed
{ path = "wezterm-types", mods = { "wezterm" } },
{ path = 'wezterm-types', mods = { 'wezterm' } },
},
},
},
{ -- G-code
"wilriker/gcode.vim",
'wilriker/gcode.vim',
},
{ -- Alternate
"ton/vim-alternate",
'ton/vim-alternate',
lazy = true,
ft = require("data.types").alternate,
keys = require("data.keys").alternate,
ft = require('data.types').alternate,
keys = require('data.keys').alternate,
},
{ -- Tailwind
"luckasRanarison/tailwind-tools.nvim",
'luckasRanarison/tailwind-tools.nvim',
lazy = true,
dependencies = require("data.deps").needs_treesitter,
dependencies = require('data.deps').needs_treesitter,
opts = {},
},
{ -- Substitute
"gbprod/substitute.nvim",
'gbprod/substitute.nvim',
lazy = true,
opts = require("data.types").substitute,
keys = require("data.keys").substitute,
opts = require('data.types').substitute,
keys = require('data.keys').substitute,
},
{ -- Comment
"numToStr/Comment.nvim",
opts = require("data.types").comment,
'numToStr/Comment.nvim',
opts = require('data.types').comment,
},
{ -- Fast Action
"Chaitanyabsprip/fastaction.nvim",
'Chaitanyabsprip/fastaction.nvim',
opts = {},
},
{ -- Matchup
"andymass/vim-matchup",
'andymass/vim-matchup',
setup = function()
-- may set any options here
vim.g.matchup_matchparen_offscreen = { method = "popup" }
vim.g.matchup_matchparen_offscreen = { method = 'popup' }
end,
},
{ -- EasyAlign
"junegunn/vim-easy-align",
keys = require("data.keys").easyalign,
'junegunn/vim-easy-align',
keys = require('data.keys').easyalign,
},
{ -- Vim-Shebang
"vitalk/vim-shebang",
'vitalk/vim-shebang',
lazy = false,
},
{
"oskarrrrrrr/symbols.nvim",
cmd = { "Symbols", "SymbolsToggle", "SymbolsOpen", "SymbolsClose" },
'oskarrrrrrr/symbols.nvim',
cmd = { 'Symbols', 'SymbolsToggle', 'SymbolsOpen', 'SymbolsClose' },
config = function()
local r = require("symbols.recipes")
require("symbols").setup(r.DefaultFilters, r.AsciiSymbols, {
local r = require('symbols.recipes')
require('symbols').setup(r.DefaultFilters, r.AsciiSymbols, {
sidebar = {
auto_peek = false,
show_guide_lines = true,
chars = {
folded = "",
unfolded = "",
guide_vert = "",
guide_middle_item = "",
guide_last_item = "",
folded = '',
unfolded = '',
guide_vert = '',
guide_middle_item = '',
guide_last_item = '',
},
preview = {
show_always = true,
+7 -7
View File
@@ -7,18 +7,18 @@
return {
-- require("config.rocks").plugin_spec,
{ -- LazyVim
"LazyVim/LazyVim",
'LazyVim/LazyVim',
priority = 900,
opts = require("data.types").lazyvim.opts,
opts = require('data.types').lazyvim.opts,
},
{ -- Bufferline
"akinsho/bufferline.nvim",
cond = require("data.types").bufferline.enabled,
opts = require("data.types").bufferline.opts,
'akinsho/bufferline.nvim',
cond = require('data.types').bufferline.enabled,
opts = require('data.types').bufferline.opts,
},
{ -- Which-Key
"folke/which-key.nvim",
'folke/which-key.nvim',
lazy = true,
opts = require("data.types").whichkey.opts,
opts = require('data.types').whichkey.opts,
},
}
+22 -21
View File
@@ -3,51 +3,52 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ ALPHA │
-- ╰─────────────────────────────────────────────────────────╯
return { -- Alpha
"goolord/alpha-nvim",
event = "VimEnter",
enabled = require("data.func").check_global_var(
"dashboard",
"alpha",
"alpha"
'goolord/alpha-nvim',
event = 'VimEnter',
enabled = require('data.func').check_global_var(
'dashboard',
'alpha',
'alpha'
),
opts = require("data.dash").alpha.opts,
opts = require('data.dash').alpha.opts,
config = function(_, dashboard)
-- close Lazy and re-open when the dashboard is ready
if vim.o.filetype == "lazy" then
if vim.o.filetype == 'lazy' then
vim.cmd.close()
vim.api.nvim_create_autocmd("User", {
vim.api.nvim_create_autocmd('User', {
once = true,
pattern = "AlphaReady",
pattern = 'AlphaReady',
callback = function()
require("lazy").show()
require('lazy').show()
end,
})
end
-- Setup the dashboard
require("alpha").setup(dashboard.opts)
require('alpha').setup(dashboard.opts)
-- Open Alpha when Vim is started with no file arguments
vim.api.nvim_create_autocmd("User", {
vim.api.nvim_create_autocmd('User', {
once = true,
pattern = "LazyVimStarted",
pattern = 'LazyVimStarted',
callback = function()
local stats = require("lazy").stats()
local stats = require('lazy').stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
dashboard.section.footer.val = "󰇥 Neovim loaded "
dashboard.section.footer.val = '󰇥 Neovim loaded '
.. stats.loaded
.. "/"
.. '/'
.. stats.count
.. " plugins in "
.. ' plugins in '
.. ms
.. "ms 󱐌"
.. 'ms 󱐌'
pcall(vim.cmd.AlphaRedraw)
-- Handle other plugins that may conflict
-- If auto-cursorline is installed, disable it
if pcall(require, "auto-cursorline") then
require("auto-cursorline").disable({ buffer = true })
if pcall(require, 'auto-cursorline') then
require('auto-cursorline').disable({ buffer = true })
end
end,
})
+1 -1
View File
@@ -3,7 +3,7 @@
-- ╰─────────────────────────────────────────────────────────╯
return {
"folke/drop.nvim",
'folke/drop.nvim',
lazy = true,
opts = {},
}
+38 -38
View File
@@ -6,103 +6,103 @@
return { --
-- Dashboard
"nvimdev/dashboard-nvim",
event = "UIEnter",
'nvimdev/dashboard-nvim',
event = 'UIEnter',
version = false,
opts = function()
---@diagnostic disable-next-line: param-type-mismatch
local logo_path = vim.fs.joinpath(vim.fn.stdpath("config"), "logo/")
local logo_path = vim.fs.joinpath(vim.fn.stdpath('config'), 'logo/')
local height, width = vim.fn.winheight(0), vim.fn.winwidth(0)
local logo_file
local logo_dimensions = { width = 0, height = 0 }
if height >= 80 and width >= 80 then
logo_file = "rootiest.txt"
logo_file = 'rootiest.txt'
elseif height >= 48 and width >= 48 then
logo_file = "xerneas.ans"
logo_file = 'xerneas.ans'
elseif width >= 100 then
logo_file = "pikachu.ans"
logo_file = 'pikachu.ans'
elseif width >= 80 then
logo_file = "tall.txt"
logo_file = 'tall.txt'
elseif width >= 50 then
logo_file = "small.txt"
logo_file = 'small.txt'
else
logo_file = "tiny.txt"
logo_file = 'tiny.txt'
end
if logo_file == "snorlax.ans" then
if logo_file == 'snorlax.ans' then
logo_dimensions = { width = 53, height = 25 }
elseif logo_file == "porygon-z.ans" then
elseif logo_file == 'porygon-z.ans' then
logo_dimensions = { width = 28, height = 18 }
elseif logo_file == "pikachu.ans" then
elseif logo_file == 'pikachu.ans' then
logo_dimensions = { width = 22, height = 11 }
elseif logo_file == "taco.ans" then
elseif logo_file == 'taco.ans' then
logo_dimensions = { width = 33, height = 15 }
elseif logo_file == "nvim.ans" then
elseif logo_file == 'nvim.ans' then
logo_dimensions = { width = 35, height = 20 }
elseif logo_file == "marshadow.ans" then
elseif logo_file == 'marshadow.ans' then
logo_dimensions = { width = 28, height = 17 }
elseif logo_file == "eiscue.ans" then
elseif logo_file == 'eiscue.ans' then
logo_dimensions = { width = 22, height = 18 }
elseif logo_file == "xerneas.ans" then
elseif logo_file == 'xerneas.ans' then
logo_dimensions = { width = 39, height = 24 }
elseif logo_file == "rootiest.ans" then
elseif logo_file == 'rootiest.ans' then
logo_dimensions = { width = 65, height = 27 }
end
local opts = {
theme = "doom",
theme = 'doom',
hide = {
statusline = false,
tabline = true,
},
-- By default, use ANSI art header
preview = {
command = "bat -pp | bat -pp",
command = 'bat -pp | bat -pp',
file_path = logo_path .. logo_file,
file_width = logo_dimensions.width,
file_height = logo_dimensions.height,
},
config = {
center = require("data.dash").dashboard_nvim.choices,
center = require('data.dash').dashboard_nvim.choices,
footer = function()
local stats = require("lazy").stats()
local stats = require('lazy').stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
return {
-- "⚡ Neovim loaded "
"󱐋 Neovim loaded "
'󱐋 Neovim loaded '
.. stats.loaded
.. "/"
.. '/'
.. stats.count
.. " plugins in "
.. ' plugins in '
.. ms
.. "ms",
.. 'ms',
}
end,
},
}
-- if logo_file extension is not .ans or .png then read the content and add it to the header
if logo_file:sub(-4) ~= ".ans" and logo_file:sub(-4) ~= ".png" then
if logo_file:sub(-4) ~= '.ans' and logo_file:sub(-4) ~= '.png' then
local logo_content = vim.fn.readfile(logo_path .. logo_file)
local LOGO = "\n\n" .. table.concat(logo_content, "\n") .. "\n\n"
opts.config.header = vim.split(LOGO, "\n")
local LOGO = '\n\n' .. table.concat(logo_content, '\n') .. '\n\n'
opts.config.header = vim.split(LOGO, '\n')
opts.preview = nil
end
for _, button in ipairs(opts.config.center) do
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"
button.desc = button.desc .. string.rep(' ', 43 - #button.desc)
button.key_format = ' %s'
end
-- Open dashboard after closing lazy
if vim.o.filetype == "lazy" then
vim.api.nvim_create_autocmd("WinClosed", {
if vim.o.filetype == 'lazy' then
vim.api.nvim_create_autocmd('WinClosed', {
pattern = tostring(vim.api.nvim_get_current_win()),
once = true,
callback = function()
vim.schedule(function()
vim.api.nvim_exec_autocmds("UIEnter", { group = "dashboard" })
vim.api.nvim_exec_autocmds('UIEnter', { group = 'dashboard' })
end)
end,
})
@@ -110,9 +110,9 @@ return { --
return opts
end,
enabled = require("data.func").check_global_var(
"dashboard",
"nvim-dashboard",
"alpha"
enabled = require('data.func').check_global_var(
'dashboard',
'nvim-dashboard',
'alpha'
),
}
+8 -8
View File
@@ -6,25 +6,25 @@
return {
{ -- DAP Core
import = "lazyvim.plugins.extras.dap.core",
import = 'lazyvim.plugins.extras.dap.core',
},
{ -- DAP Neovim Lua Adapter
import = "lazyvim.plugins.extras.dap.nlua",
import = 'lazyvim.plugins.extras.dap.nlua',
},
{ -- NeoTest
import = "lazyvim.plugins.extras.test.core",
import = 'lazyvim.plugins.extras.test.core',
},
{ -- Neotest Plenary
"nvim-neotest/neotest-plenary",
'nvim-neotest/neotest-plenary',
},
{ -- Neotest
"nvim-neotest/neotest",
'nvim-neotest/neotest',
opts = {
adapters = require("data.deps").neotest.adapters,
adapters = require('data.deps').neotest.adapters,
},
dependencies = require("data.deps").neotest.deps,
dependencies = require('data.deps').neotest.deps,
},
{ -- Profiling
"stevearc/profile.nvim",
'stevearc/profile.nvim',
},
}
+68 -68
View File
@@ -6,157 +6,157 @@
return {
{ -- Aerial
import = "lazyvim.plugins.extras.editor.aerial",
import = 'lazyvim.plugins.extras.editor.aerial',
},
{ -- Dial
import = "lazyvim.plugins.extras.editor.dial",
import = 'lazyvim.plugins.extras.editor.dial',
},
{ -- Illuminate
import = "lazyvim.plugins.extras.editor.illuminate",
import = 'lazyvim.plugins.extras.editor.illuminate',
},
{ -- Outline
import = "lazyvim.plugins.extras.editor.outline",
import = 'lazyvim.plugins.extras.editor.outline',
},
{ -- IncRename
import = "lazyvim.plugins.extras.editor.inc-rename",
import = 'lazyvim.plugins.extras.editor.inc-rename',
},
{ -- Treesitter-context
import = "lazyvim.plugins.extras.ui.treesitter-context",
import = 'lazyvim.plugins.extras.ui.treesitter-context',
},
{ -- Navic
import = "lazyvim.plugins.extras.editor.navic",
import = 'lazyvim.plugins.extras.editor.navic',
},
{ -- Refactoring
import = "lazyvim.plugins.extras.editor.refactoring",
import = 'lazyvim.plugins.extras.editor.refactoring',
},
{ -- Trouble
"folke/trouble.nvim",
cmd = require("data.cmd").trouble,
opts = require("data.types").trouble.opts,
'folke/trouble.nvim',
cmd = require('data.cmd').trouble,
opts = require('data.types').trouble.opts,
},
{ -- Flash
"folke/flash.nvim",
opts = require("data.types").flash,
keys = require("data.keys").flash,
'folke/flash.nvim',
opts = require('data.types').flash,
keys = require('data.keys').flash,
},
{ -- NeoTree
"nvim-neo-tree/neo-tree.nvim",
opts = require("data.types").neotree.opts,
'nvim-neo-tree/neo-tree.nvim',
opts = require('data.types').neotree.opts,
},
{ -- Arrow
"otavioschwanck/arrow.nvim",
opts = require("data.types").arrow,
'otavioschwanck/arrow.nvim',
opts = require('data.types').arrow,
},
{ -- indent-blankline
"lukas-reineke/indent-blankline.nvim",
'lukas-reineke/indent-blankline.nvim',
lazy = true,
},
---@module "neominimap.config.meta"
{ -- NeoMiniMap
"Isrothy/neominimap.nvim",
'Isrothy/neominimap.nvim',
lazy = false,
keys = require("data.keys").minimap.func,
init = require("data.types").minimap.init(),
cond = require("data.types").minimap.cond(),
keys = require('data.keys').minimap.func,
init = require('data.types').minimap.init(),
cond = require('data.types').minimap.cond(),
},
{ -- Persistence
"folke/persistence.nvim",
event = "BufReadPre",
'folke/persistence.nvim',
event = 'BufReadPre',
opts = {},
},
{ -- DeadColumn
"Bekaboo/deadcolumn.nvim",
event = "BufEnter",
cond = require("data.func").check_global_var("dead_column", true, true),
'Bekaboo/deadcolumn.nvim',
event = 'BufEnter',
cond = require('data.func').check_global_var('dead_column', true, true),
},
{ -- Precognition
"tris203/precognition.nvim",
'tris203/precognition.nvim',
lazy = true,
opts = {},
keys = require("data.keys").precog,
keys = require('data.keys').precog,
},
{ -- Zen Mode
"folke/zen-mode.nvim",
'folke/zen-mode.nvim',
lazy = true,
opts = require("data.types").zen,
keys = require("data.keys").zen,
opts = require('data.types').zen,
keys = require('data.keys').zen,
},
{ -- SmoothCursor
"gen740/SmoothCursor.nvim",
event = "BufEnter",
'gen740/SmoothCursor.nvim',
event = 'BufEnter',
-- lazy = true,
opts = require("data.types").smoothcursor,
opts = require('data.types').smoothcursor,
enabled = false,
},
{ -- Smart Scrolloff
"tonymajestro/smart-scrolloff.nvim",
event = "VeryLazy",
cond = require("data.func").check_global_var("smart_scrolloff", true, true),
opts = require("data.types").smartscrolloff,
'tonymajestro/smart-scrolloff.nvim',
event = 'VeryLazy',
cond = require('data.func').check_global_var('smart_scrolloff', true, true),
opts = require('data.types').smartscrolloff,
},
{ -- Recorder
"chrisgrieser/nvim-recorder",
event = "VeryLazy",
dependencies = require("data.deps").recorder,
'chrisgrieser/nvim-recorder',
event = 'VeryLazy',
dependencies = require('data.deps').recorder,
opts = {},
},
{ -- Comment Box
"LudoPinelli/comment-box.nvim",
'LudoPinelli/comment-box.nvim',
lazy = false,
},
{ -- Todo Comments
"folke/todo-comments.nvim",
opts = require("data.types").todo.opts,
cond = require("data.cond").todo,
'folke/todo-comments.nvim',
opts = require('data.types').todo.opts,
cond = require('data.cond').todo,
enabled = true,
},
{ -- Rainbow Delimeters
"HiPhish/rainbow-delimiters.nvim",
'HiPhish/rainbow-delimiters.nvim',
},
{ -- Colorful window separators
"nvim-zh/colorful-winsep.nvim",
'nvim-zh/colorful-winsep.nvim',
enabled = false,
lazy = true,
opts = require("data.types").winsep,
event = { "WinLeave" },
opts = require('data.types').winsep,
event = { 'WinLeave' },
},
{ -- Auto Cursorline
"delphinus/auto-cursorline.nvim",
cond = require("data.func").check_global_var("auto_cursorline", true, true),
opts = require("data.types").autocursorline,
'delphinus/auto-cursorline.nvim',
cond = require('data.func').check_global_var('auto_cursorline', true, true),
opts = require('data.types').autocursorline,
},
{ -- Bars N Lines
"OXY2DEV/bars-N-lines.nvim",
cond = require("data.types").barsNlines.enabled,
'OXY2DEV/bars-N-lines.nvim',
cond = require('data.types').barsNlines.enabled,
lazy = false,
config = require("data.types").barsNlines.config,
config = require('data.types').barsNlines.config,
},
{ -- UndoTree
"mbbill/undotree",
'mbbill/undotree',
lazy = false,
config = require("data.types").undotree,
keys = require("data.keys").undotree,
config = require('data.types').undotree,
keys = require('data.keys').undotree,
},
{ -- Noice
"folke/noice.nvim",
'folke/noice.nvim',
optional = true,
opts = require("data.types").noice,
opts = require('data.types').noice,
},
{ -- Duck
"tamton-aquib/duck.nvim",
config = require("data.types").duck,
'tamton-aquib/duck.nvim',
config = require('data.types').duck,
},
{ -- Volt
"rootiest/volt",
'rootiest/volt',
lazy = true,
},
{ -- Minty
"nvchad/minty",
'nvchad/minty',
lazy = true,
},
{
"folke/twilight.nvim",
opts = require("data.types").twilight,
'folke/twilight.nvim',
opts = require('data.types').twilight,
},
-- { -- vim-footprints
-- "axlebedev/vim-footprints",
+24 -24
View File
@@ -6,57 +6,57 @@
return {
{ -- Octo plugin
import = "lazyvim.plugins.extras.util.octo",
import = 'lazyvim.plugins.extras.util.octo',
},
{ -- Gist Tools
"Rawnly/gist.nvim",
'Rawnly/gist.nvim',
lazy = true,
cmd = require("data.cmd").gist,
keys = require("data.keys").gist.func,
cmd = require('data.cmd').gist,
keys = require('data.keys').gist.func,
config = true,
},
{ -- LazyGit
"kdheepak/lazygit.nvim",
'kdheepak/lazygit.nvim',
lazy = true,
cmd = require("data.cmd").lazygit,
keys = require("data.keys").lazygit,
dependencies = require("data.deps").lazygit,
cmd = require('data.cmd').lazygit,
keys = require('data.keys').lazygit,
dependencies = require('data.deps').lazygit,
config = function()
require("telescope").load_extension("lazygit")
require('telescope').load_extension('lazygit')
end,
},
{ -- Thanks/github-stars
"jsongerber/thanks.nvim",
'jsongerber/thanks.nvim',
lazy = true,
cmd = require("data.cmd").thanks,
opts = require("data.types").thanks.opts,
cmd = require('data.cmd').thanks,
opts = require('data.types').thanks.opts,
},
{ -- GitLinker
"linrongbin16/gitlinker.nvim",
'linrongbin16/gitlinker.nvim',
lazy = true,
cmd = require("data.cmd").gitlinker,
cmd = require('data.cmd').gitlinker,
opts = {},
keys = require("data.keys").gitlinker,
keys = require('data.keys').gitlinker,
},
{ -- Git Blame
"f-person/git-blame.nvim",
event = "VeryLazy",
opts = require("data.types").gitblame.opts,
'f-person/git-blame.nvim',
event = 'VeryLazy',
opts = require('data.types').gitblame.opts,
},
{ -- Git Graph
"isakbm/gitgraph.nvim",
opts = require("data.types").gitgraph.opts,
keys = require("data.keys").gitgraph,
'isakbm/gitgraph.nvim',
opts = require('data.types').gitgraph.opts,
keys = require('data.keys').gitgraph,
},
{ -- Diffview
"sindrets/diffview.nvim",
'sindrets/diffview.nvim',
lazy = false,
opts = {},
},
{ -- Neogit
"NeogitOrg/neogit",
'NeogitOrg/neogit',
opts = {
graph_style = "kitty",
graph_style = 'kitty',
},
},
}
+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
+30 -29
View File
@@ -3,66 +3,67 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Languages │
-- ╰─────────────────────────────────────────────────────────╯
return {
{ -- none-ls
import = "lazyvim.plugins.extras.lsp.none-ls",
import = 'lazyvim.plugins.extras.lsp.none-ls',
},
{ -- JSON
import = "lazyvim.plugins.extras.lang.json",
import = 'lazyvim.plugins.extras.lang.json',
},
{ -- Markdown
import = "lazyvim.plugins.extras.lang.markdown",
import = 'lazyvim.plugins.extras.lang.markdown',
},
{ -- Toml
import = "lazyvim.plugins.extras.lang.toml",
import = 'lazyvim.plugins.extras.lang.toml',
},
{ -- Git
import = "lazyvim.plugins.extras.lang.git",
import = 'lazyvim.plugins.extras.lang.git',
},
{ -- Python
import = "lazyvim.plugins.extras.lang.python",
import = 'lazyvim.plugins.extras.lang.python',
},
{ -- Yaml
import = "lazyvim.plugins.extras.lang.yaml",
import = 'lazyvim.plugins.extras.lang.yaml',
},
{ -- clangd
import = "lazyvim.plugins.extras.lang.clangd",
import = 'lazyvim.plugins.extras.lang.clangd',
},
{ -- cmake
import = "lazyvim.plugins.extras.lang.cmake",
import = 'lazyvim.plugins.extras.lang.cmake',
},
{ -- Docker
import = "lazyvim.plugins.extras.lang.docker",
import = 'lazyvim.plugins.extras.lang.docker',
},
{ -- Java
import = "lazyvim.plugins.extras.lang.java",
import = 'lazyvim.plugins.extras.lang.java',
},
{ -- Sql
import = "lazyvim.plugins.extras.lang.sql",
import = 'lazyvim.plugins.extras.lang.sql',
},
{ -- Jinja
"armyers/Vim-Jinja2-Syntax",
'armyers/Vim-Jinja2-Syntax',
},
{ -- Render-markdown
"MeanderingProgrammer/render-markdown.nvim",
'MeanderingProgrammer/render-markdown.nvim',
enabled = false,
opts = {
heading = {
-- Determins if a border is added above and below headings
border = true,
above = "",
above = '',
-- Used below heading for border
below = "🮂",
below = '🮂',
},
file_types = { "markdown", "Avante" },
file_types = { 'markdown', 'Avante' },
},
ft = { "markdown", "Avante" },
ft = { 'markdown', 'Avante' },
},
{
"OXY2DEV/markview.nvim",
ft = { "markdown", "Avante" },
'OXY2DEV/markview.nvim',
ft = { 'markdown', 'Avante' },
opts = function()
local presets = require("markview.presets")
local presets = require('markview.presets')
return {
checkboxes = presets.checkboxes.nerd,
headings = presets.headings.simple,
@@ -70,23 +71,23 @@ return {
end,
},
{ -- Markdown Preview
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
'iamcco/markdown-preview.nvim',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
build = function()
vim.fn["mkdp#util#install"]()
vim.fn['mkdp#util#install']()
end,
},
{ -- WezTerm Types
"gonstoll/wezterm-types",
'gonstoll/wezterm-types',
dev = true,
},
{
"akinsho/flutter-tools.nvim",
'akinsho/flutter-tools.nvim',
lazy = false,
dependencies = {
"nvim-lua/plenary.nvim",
"stevearc/dressing.nvim", -- optional for vim.ui.select
'nvim-lua/plenary.nvim',
'stevearc/dressing.nvim', -- optional for vim.ui.select
},
opts = {},
},
+25 -25
View File
@@ -6,62 +6,62 @@
return {
{ -- mini.animate
import = "lazyvim.plugins.extras.ui.mini-animate",
import = 'lazyvim.plugins.extras.ui.mini-animate',
},
{
"echasnovski/mini.move",
event = "VeryLazy",
'echasnovski/mini.move',
event = 'VeryLazy',
opts = {},
},
{ -- Mini.Indentscope
import = "lazyvim.plugins.extras.ui.mini-indentscope",
import = 'lazyvim.plugins.extras.ui.mini-indentscope',
},
{ -- Mini Indentscope
"echasnovski/mini.indentscope",
opts = require("data.types").miniindentscope.opts,
init = require("data.types").miniindentscope.init,
'echasnovski/mini.indentscope',
opts = require('data.types').miniindentscope.opts,
init = require('data.types').miniindentscope.init,
},
{ -- mini.align
"echasnovski/mini.align",
event = "InsertEnter",
'echasnovski/mini.align',
event = 'InsertEnter',
config = function()
require("mini.align").setup()
require('mini.align').setup()
end,
},
{ -- mini.splitjoin
"echasnovski/mini.splitjoin",
event = "InsertEnter",
'echasnovski/mini.splitjoin',
event = 'InsertEnter',
opts = {
mappings = require("data.keys").splitjoin,
mappings = require('data.keys').splitjoin,
},
},
{ -- mini.surround
"echasnovski/mini.surround",
'echasnovski/mini.surround',
opts = {},
},
{ -- mini.files
"echasnovski/mini.files",
opts = require("data.types").minifiles.opts,
keys = require("data.keys").minifiles,
config = require("data.types").minifiles.config,
'echasnovski/mini.files',
opts = require('data.types').minifiles.opts,
keys = require('data.keys').minifiles,
config = require('data.types').minifiles.config,
},
{ -- mini.icons
"echasnovski/mini.icons",
'echasnovski/mini.icons',
lazy = true,
opts = {
file = {
[".keep"] = { glyph = "󰊢", hl = "MiniIconsGrey" },
["devcontainer.json"] = { glyph = "", hl = "MiniIconsAzure" },
['.keep'] = { glyph = '󰊢', hl = 'MiniIconsGrey' },
['devcontainer.json'] = { glyph = '', hl = 'MiniIconsAzure' },
},
filetype = {
dotenv = { glyph = "", hl = "MiniIconsYellow" },
dotenv = { glyph = '', hl = 'MiniIconsYellow' },
},
},
init = function()
---@diagnostic disable-next-line: duplicate-set-field
package.preload["nvim-web-devicons"] = function()
require("mini.icons").mock_nvim_web_devicons()
return package.loaded["nvim-web-devicons"]
package.preload['nvim-web-devicons'] = function()
require('mini.icons').mock_nvim_web_devicons()
return package.loaded['nvim-web-devicons']
end
end,
},
+9 -6
View File
@@ -3,12 +3,12 @@
-- ╰─────────────────────────────────────────────────────────╯
return { -- Neovim Updater
"rootiest/nvim-updater.nvim",
version = "*", -- Pin to GitHub releases
'rootiest/nvim-updater.nvim',
version = '*', -- Pin to GitHub releases
lazy = false,
opts = {
build_type = "RelWithDebInfo",
branch = "master",
build_type = 'RelWithDebInfo',
branch = 'master',
verbose = false,
check_for_updates = true,
update_interval = (60 * 60) * 6, -- 6 hours
@@ -16,10 +16,13 @@ return { -- Neovim Updater
default_keymaps = false,
},
keys = function()
-- Load Neovim Updater Debugging Functions
require('config.nvim_updater') -- Debugging Functions
-- Add Neovim Updater menu
require("data.func").add_keymap(require("data.keys").group.nvimup)
require('data.func').add_keymap(require('data.keys').group.nvimup)
-- Add Neovim Updater keys
return require("data.keys").nvimup
return require('data.keys').nvimup
end,
dev = vim.g.rootiest_dev or false,
}
+7 -7
View File
@@ -10,22 +10,22 @@
-- Load plugin overrides
return {
{ -- Override build for markdown-preview
"iamcco/markdown-preview.nvim",
'iamcco/markdown-preview.nvim',
priority = 1001,
build = "cd app && yarn install",
build = 'cd app && yarn install',
},
{ -- Prioritize dadbod
"kristijanhusak/vim-dadbod-completion",
'kristijanhusak/vim-dadbod-completion',
priority = 1001,
dependencies = "vim-dadbod",
dependencies = 'vim-dadbod',
},
{ -- Prioritize dadbod
"kristijanhusak/vim-dadbod-ui",
'kristijanhusak/vim-dadbod-ui',
priority = 1001,
dependencies = "vim-dadbod",
dependencies = 'vim-dadbod',
},
{ -- Prioritize dadbod
"tpope/vim-dadbod",
'tpope/vim-dadbod',
priority = 1002,
},
}
+45 -45
View File
@@ -4,7 +4,7 @@
return {
{
"folke/snacks.nvim",
'folke/snacks.nvim',
priority = 1010,
lazy = false,
opts = {
@@ -24,102 +24,102 @@ return {
},
keys = {
{
"<leader>un",
'<leader>un',
function()
Snacks.notifier.hide()
end,
desc = "Dismiss All Notifications",
desc = 'Dismiss All Notifications',
},
{
"<leader>bd",
'<leader>bd',
function()
Snacks.bufdelete()
end,
desc = "Delete Buffer",
desc = 'Delete Buffer',
},
{
"<leader>gg",
'<leader>gg',
function()
Snacks.lazygit()
end,
desc = "Lazygit",
desc = 'Lazygit',
},
{
"<leader>gb",
'<leader>gb',
function()
Snacks.git.blame_line()
end,
desc = "Git Blame Line",
desc = 'Git Blame Line',
},
{
"<leader>gB",
'<leader>gB',
function()
Snacks.gitbrowse()
end,
desc = "Git Browse",
desc = 'Git Browse',
},
{
"<leader>gf",
'<leader>gf',
function()
Snacks.lazygit.log_file()
end,
desc = "Lazygit Current File History",
desc = 'Lazygit Current File History',
},
{
"<leader>gl",
'<leader>gl',
function()
Snacks.lazygit.log()
end,
desc = "Lazygit Log (cwd)",
desc = 'Lazygit Log (cwd)',
},
{
"<leader>cR",
'<leader>cR',
function()
Snacks.rename()
end,
desc = "Rename File",
desc = 'Rename File',
},
{
"<c-/>",
'<c-/>',
function()
Snacks.terminal()
end,
desc = "Toggle Terminal",
desc = 'Toggle Terminal',
},
{
"<c-_>",
'<c-_>',
function()
Snacks.terminal()
end,
desc = "which_key_ignore",
desc = 'which_key_ignore',
},
{
"]]",
']]',
function()
Snacks.words.jump(vim.v.count1)
end,
desc = "Next Reference",
desc = 'Next Reference',
},
{
"[[",
'[[',
function()
Snacks.words.jump(-vim.v.count1)
end,
desc = "Prev Reference",
desc = 'Prev Reference',
},
{
"<leader>N",
desc = "Neovim News",
'<leader>N',
desc = 'Neovim News',
function()
Snacks.win({
file = vim.api.nvim_get_runtime_file("doc/news.txt", false)[1],
file = vim.api.nvim_get_runtime_file('doc/news.txt', false)[1],
width = 0.6,
height = 0.6,
wo = {
spell = false,
wrap = false,
signcolumn = "yes",
statuscolumn = " ",
signcolumn = 'yes',
statuscolumn = ' ',
conceallevel = 3,
},
})
@@ -128,8 +128,8 @@ return {
},
init = function()
Snacks = Snacks -- Define the global so it will shutup
vim.api.nvim_create_autocmd("User", {
pattern = "VeryLazy",
vim.api.nvim_create_autocmd('User', {
pattern = 'VeryLazy',
callback = function()
-- Setup some globals for debugging (lazy-loaded)
_G.dd = function(...)
@@ -141,27 +141,27 @@ return {
vim.print = _G.dd -- Override print to use snacks for `:=` command
-- Create some toggle mappings
Snacks.toggle.option("spell", { name = "Spelling" }):map("<leader>us")
Snacks.toggle.option("wrap", { name = "Wrap" }):map("<leader>uw")
Snacks.toggle.option('spell', { name = 'Spelling' }):map('<leader>us')
Snacks.toggle.option('wrap', { name = 'Wrap' }):map('<leader>uw')
Snacks.toggle
.option("relativenumber", { name = "Relative Number" })
:map("<leader>uL")
Snacks.toggle.diagnostics():map("<leader>ud")
Snacks.toggle.line_number():map("<leader>ul")
.option('relativenumber', { name = 'Relative Number' })
:map('<leader>uL')
Snacks.toggle.diagnostics():map('<leader>ud')
Snacks.toggle.line_number():map('<leader>ul')
Snacks.toggle
.option("conceallevel", {
.option('conceallevel', {
off = 0,
on = vim.o.conceallevel > 0 and vim.o.conceallevel or 2,
})
:map("<leader>uc")
Snacks.toggle.treesitter():map("<leader>uT")
:map('<leader>uc')
Snacks.toggle.treesitter():map('<leader>uT')
Snacks.toggle
.option(
"background",
{ off = "light", on = "dark", name = "Dark Background" }
'background',
{ off = 'light', on = 'dark', name = 'Dark Background' }
)
:map("<leader>ub")
Snacks.toggle.inlay_hints():map("<leader>uh")
:map('<leader>ub')
Snacks.toggle.inlay_hints():map('<leader>uh')
end,
})
end,
+1 -1
View File
@@ -8,7 +8,7 @@
-- ╰─────────────────────────────────────────────────────────╯
-- If basic statusline is not enabled, return an empty table
if vim.g.statusline ~= "basic" then
if vim.g.statusline ~= 'basic' then
return {}
end
+6 -6
View File
@@ -9,13 +9,13 @@
return {
{
"rebelot/heirline.nvim",
cond = require("data.func").check_global_var(
"statusline",
"heirline",
"lualine"
'rebelot/heirline.nvim',
cond = require('data.func').check_global_var(
'statusline',
'heirline',
'lualine'
),
event = "UIEnter",
event = 'UIEnter',
opts = {},
},
}
+141 -141
View File
@@ -7,12 +7,12 @@
-- │ Lualine │
-- ╰─────────────────────────────────────────────────────────╯
local wakatime_stats = require("utils.wakatime_stats")
local music_stats = require("utils.music_stats")
local wakatime_stats = require('utils.wakatime_stats')
local music_stats = require('utils.music_stats')
-- Setup NeoMiniMap extension
-- local minimap_extension = require("neominimap.statusline").lualine_default
local neominimap = require("neominimap.statusline")
local neominimap = require('neominimap.statusline')
local minimap_extension = {
sections = {
lualine_a = {
@@ -20,8 +20,8 @@ local minimap_extension = {
},
lualine_b = {
{ -- Branch
"branch",
separator = "",
'branch',
separator = '',
padding = { left = 1, right = 0 },
},
},
@@ -30,89 +30,89 @@ local minimap_extension = {
},
lualine_y = {
{ -- Progress
"progress",
separator = "",
'progress',
separator = '',
padding = { left = 0, right = 1 },
icon = "",
icon = '',
},
neominimap.position,
},
lualine_z = {
{ -- Time
"datetime",
style = "%a %R",
icon = "",
'datetime',
style = '%a %R',
icon = '',
padding = { left = 0, right = 1 },
on_click = function()
vim.cmd("Telescope oldfiles")
vim.cmd('Telescope oldfiles')
end,
},
},
},
filetypes = { "neominimap" },
filetypes = { 'neominimap' },
}
-- Use lualine by default
if vim.g.statusline == nil then
vim.g.statusline = "lualine"
vim.g.statusline = 'lualine'
end
-- function to process get_status() and set buffer variable to that data.
local neocodeium = require("neocodeium")
local neocodeium = require('neocodeium')
local function get_neocodeium_status(ev)
local status, server_status = neocodeium.get_status()
-- process this data, convert it to custom string/icon etc and set buffer variable
-- Tables to map serverstatus and status to corresponding symbols
local server_status_symbols = {
[0] = "󰣺 ", -- Connected
[1] = "󱤚 ", -- Connecting
[2] = "󰣽 ", -- Disconnected
[0] = '󰣺 ', -- Connected
[1] = '󱤚 ', -- Connecting
[2] = '󰣽 ', -- Disconnected
}
local status_symbols = {
[0] = "󰚩 ", -- Enabled
[1] = "󱚧 ", -- Disabled Globally
[3] = "󱚢 ", -- Disabled for Buffer filetype
[5] = "󱚠 ", -- Disabled for Buffer encoding
[2] = "󱙻 ", -- Disabled for Buffer (catch-all)
[0] = '󰚩 ', -- Enabled
[1] = '󱚧 ', -- Disabled Globally
[3] = '󱚢 ', -- Disabled for Buffer filetype
[5] = '󱚠 ', -- Disabled for Buffer encoding
[2] = '󱙻 ', -- Disabled for Buffer (catch-all)
}
-- Handle serverstatus and status fallback (safeguard against any unexpected value)
local luacodeium = server_status_symbols[server_status] or "󰣼 "
luacodeium = luacodeium .. (status_symbols[status] or "󱙻 ")
vim.api.nvim_buf_set_var(ev.buf, "neocodeium_status", luacodeium)
local luacodeium = server_status_symbols[server_status] or '󰣼 '
luacodeium = luacodeium .. (status_symbols[status] or '󱙻 ')
vim.api.nvim_buf_set_var(ev.buf, 'neocodeium_status', luacodeium)
end
-- Then only some of event fired we invoked this function
vim.api.nvim_create_autocmd("User", {
vim.api.nvim_create_autocmd('User', {
group = ..., -- set some augroup here
pattern = {
"NeoCodeiumServerConnecting",
"NeoCodeiumServerConnected",
"NeoCodeiumServerStopped",
"NeoCodeiumEnabled",
"NeoCodeiumDisabled",
"NeoCodeiumBufEnabled",
"NeoCodeiumBufDisabled",
'NeoCodeiumServerConnecting',
'NeoCodeiumServerConnected',
'NeoCodeiumServerStopped',
'NeoCodeiumEnabled',
'NeoCodeiumDisabled',
'NeoCodeiumBufEnabled',
'NeoCodeiumBufDisabled',
},
callback = get_neocodeium_status,
})
return { -- Lualine
"nvim-lualine/lualine.nvim",
cond = require("data.func").check_global_var(
"statusline",
"lualine",
"lualine"
'nvim-lualine/lualine.nvim',
cond = require('data.func').check_global_var(
'statusline',
'lualine',
'lualine'
),
dependencies = require("data.deps").lualine,
dependencies = require('data.deps').lualine,
init = function()
vim.g.lualine_laststatus = vim.o.laststatus
if vim.fn.argc(-1) > 0 then
-- set an empty statusline till lualine loads
vim.o.statusline = " "
vim.o.statusline = ' '
else
-- hide the statusline on the starter page
vim.o.laststatus = 0
@@ -127,84 +127,84 @@ return { -- Lualine
-- Define todo-comments component
-- Attempt to require the plugin and handle the case where it's not available
local status, todos = pcall(require, "todos-lualine")
local status, todos = pcall(require, 'todos-lualine')
local todos_component
if not status then
todos_component = nil -- Set to nil if the plugin is not loaded
else
todos_component = todos.component(require("data.types").todo.lualine())
todos_component = todos.component(require('data.types').todo.lualine())
end
local opts = {
options = { -- General options
theme = "auto",
theme = 'auto',
globalstatus = vim.o.laststatus == 3,
disabled_filetypes = {
statusline = { "dashboard", "alpha", "ministarter" },
statusline = { 'dashboard', 'alpha', 'ministarter' },
},
section_separators = { left = "", right = "" },
component_separators = { left = "", right = "" },
section_separators = { left = '', right = '' },
component_separators = { left = '', right = '' },
},
sections = { -- Sections
lualine_a = {
{ -- Mode
function()
return require("data.types").mode.current.lualine()
return require('data.types').mode.current.lualine()
end,
padding = { left = 1, right = 0 },
separator = { left = "", right = "" },
separator = { left = '', right = '' },
},
{ -- MultiCursors
function()
return require("data.func").mc_statusline().count
.. require("data.func").mc_statusline().icon
return require('data.func').mc_statusline().count
.. require('data.func').mc_statusline().icon
end,
cond = function()
return require("data.func").mc_statusline().cursors > 1
return require('data.func').mc_statusline().cursors > 1
end,
color = function()
return require("data.func").mc_statusline().color
return require('data.func').mc_statusline().color
end,
padding = { left = 1, right = 0 },
separator = { left = "", right = "" },
separator = { left = '', right = '' },
},
},
lualine_b = {
{ -- Branch
"branch",
separator = "",
'branch',
separator = '',
padding = { left = 1, right = 0 },
},
{ -- Todo
todos_component,
cond = function()
return require("data.func").is_window_wide_enough(100)
return require('data.func').is_window_wide_enough(100)
end,
padding = { left = 1, right = 0 },
on_click = function()
vim.cmd("TodoTelescope")
vim.cmd('TodoTelescope')
end,
},
{ -- Arrow
function()
return require("arrow.statusline").text_for_statusline_with_icons()
return require('arrow.statusline').text_for_statusline_with_icons()
end,
cond = function()
return require("data.func").is_window_wide_enough(100)
and pcall(require, "arrow")
return require('data.func').is_window_wide_enough(100)
and pcall(require, 'arrow')
end,
padding = { left = 1, right = 0 },
on_click = function()
vim.cmd("Arrow open")
vim.cmd('Arrow open')
end,
},
},
lualine_c = {
LazyVim.lualine.root_dir(),
{ -- Diagnostics
"diagnostics",
'diagnostics',
symbols = {
error = icons.diagnostics.Error,
warn = icons.diagnostics.Warn,
@@ -214,35 +214,35 @@ return { -- Lualine
padding = { left = 0, right = 0 },
},
{ -- Filetype
"filetype",
'filetype',
icon_only = true,
separator = "",
separator = '',
padding = { left = 1, right = 0 },
},
{ -- PrettyPath
LazyVim.lualine.pretty_path(),
padding = { left = 0, right = 0 },
cond = function()
return not string.find(vim.bo.filetype, "neovim_updater_term")
return not string.find(vim.bo.filetype, 'neovim_updater_term')
end,
},
{ -- Neovim Updater
function()
local ft = vim.bo.filetype
if ft == "neovim_updater_term.updating" then
return "Neovim Updating.."
elseif ft == "neovim_updater_term.cloning" then
return "Neovim Source Cloning.."
elseif ft == "neovim_updater_term.changes" then
return "Neovim Source Changelog"
if ft == 'neovim_updater_term.updating' then
return 'Neovim Updating..'
elseif ft == 'neovim_updater_term.cloning' then
return 'Neovim Source Cloning..'
elseif ft == 'neovim_updater_term.changes' then
return 'Neovim Source Changelog'
end
end,
icon = "󰅢 ",
color = "lualine_a_terminal",
separator = { left = "", right = "" },
icon = '󰅢 ',
color = 'lualine_a_terminal',
separator = { left = '', right = '' },
padding = { left = 0, right = 0 },
cond = function()
return string.find(vim.bo.filetype, "neovim_updater_term") ~= nil
return string.find(vim.bo.filetype, 'neovim_updater_term') ~= nil
end,
},
},
@@ -268,7 +268,7 @@ return { -- Lualine
color = function() return LazyVim.ui.fg("Special") end,
},
{ -- Diff
"diff",
'diff',
symbols = {
added = icons.git.added,
modified = icons.git.modified,
@@ -276,7 +276,7 @@ return { -- Lualine
padding = { left = 0, right = 0 },
on_click = function()
if vim.g.statusline_clickable_git ~= false then
require("config.rootiest").toggle_lazygit_float()
require('config.rootiest').toggle_lazygit_float()
end
end,
},
@@ -292,12 +292,12 @@ return { -- Lualine
end
end,
cond = function()
return require("data.func").is_window_wide_enough(200)
return require('data.func').is_window_wide_enough(200)
end,
padding = { left = 0, right = 0 },
on_click = function()
if vim.g.statusline_clickable_git ~= false then
require("config.rootiest").toggle_lazygit_float()
require('config.rootiest').toggle_lazygit_float()
end
end,
},
@@ -310,7 +310,7 @@ return { -- Lualine
return wakatime_stats.get_color()
end,
cond = function()
return require("data.func").is_window_wide_enough(100)
return require('data.func').is_window_wide_enough(100)
end,
padding = { left = 0, right = 1 },
},
@@ -319,36 +319,36 @@ return { -- Lualine
return music_stats.get_icon_with_text()
end,
cond = function()
return require("data.func").is_window_wide_enough(100)
return require('data.func').is_window_wide_enough(100)
end,
padding = { left = 0, right = 1 },
},
{ -- Neovim Updater Status
function()
return require("nvim_updater").get_statusline().icon_text
return require('nvim_updater').get_statusline().icon_text
end,
color = function()
return require("nvim_updater").get_statusline().color
return require('nvim_updater').get_statusline().color
end,
on_click = function()
require("nvim_updater").show_new_commits({
require('nvim_updater').show_new_commits({
isupdate = true,
short = false,
})
end,
padding = { left = 1, right = 1 },
cond = function()
if not pcall(require, "nvim_updater") then
if not pcall(require, 'nvim_updater') then
return false
end
return not string.find(vim.bo.filetype, "neovim_updater_term")
return not string.find(vim.bo.filetype, 'neovim_updater_term')
end,
},
},
lualine_y = {
{ -- NeoCodeium Status
function()
return vim.b.neocodeium_status or "󰣽 "
return vim.b.neocodeium_status or '󰣽 '
end,
padding = { left = 0, right = 1 },
},
@@ -356,125 +356,125 @@ return { -- Lualine
function()
return vim.fn.wordcount().words
end,
icon = "",
icon = '',
cond = function()
return require("data.func").is_window_wide_enough(80)
return require('data.func').is_window_wide_enough(80)
end,
padding = { left = 0, right = 1 },
on_click = function()
vim.cmd("Telescope current_buffer_fuzzy_find")
vim.cmd('Telescope current_buffer_fuzzy_find')
end,
},
{ -- Progress
"progress",
separator = "",
'progress',
separator = '',
padding = { left = 0, right = 1 },
cond = function()
return require("data.func").is_window_wide_enough(60)
return require('data.func').is_window_wide_enough(60)
end,
icon = "",
icon = '',
on_click = function()
vim.cmd("Telescope grep_string")
vim.cmd('Telescope grep_string')
end,
},
{ -- Location
"location",
'location',
padding = { left = 0, right = 1 },
cond = function()
return require("data.func").is_window_wide_enough(40)
return require('data.func').is_window_wide_enough(40)
end,
on_click = function()
vim.cmd("Telescope grep_string")
vim.cmd('Telescope grep_string')
end,
},
{ -- Selection
"selection_count",
'selection_count',
cond = function()
return require("data.func").is_window_wide_enough(120)
return require('data.func').is_window_wide_enough(120)
end,
padding = { left = 0, right = 1 },
},
{ -- Filesize
"filesize",
'filesize',
cond = function()
return require("data.func").is_window_wide_enough(100)
return require('data.func').is_window_wide_enough(100)
end,
padding = { left = 0, right = 1 },
icon = "",
icon = '',
on_click = function()
vim.cmd("Neotree reveal toggle")
vim.cmd('Neotree reveal toggle')
end,
separator = { left = "", right = "" },
separator = { left = '', right = '' },
},
{ -- Encoding
"encoding",
'encoding',
show_bomb = true,
padding = { left = 0, right = 1 },
separator = "",
icon = "󱁻",
separator = '',
icon = '󱁻',
on_click = function()
vim.cmd("Telescope oldfiles")
vim.cmd('Telescope oldfiles')
end,
},
},
lualine_z = {
{ -- Recording
require("recorder").recordingStatus,
require('recorder').recordingStatus,
cond = function()
return pcall(require, "recorder")
return pcall(require, 'recorder')
end,
color = "CurSearch",
separator = { left = "", right = "" },
color = 'CurSearch',
separator = { left = '', right = '' },
},
{ -- Search
"searchcount",
color = "CurSearch",
separator = { left = "", right = "" },
icon = "󰍉 ",
'searchcount',
color = 'CurSearch',
separator = { left = '', right = '' },
icon = '󰍉 ',
on_click = function()
vim.cmd("Telescope current_buffer_fuzzy_find")
vim.cmd('Telescope current_buffer_fuzzy_find')
end,
},
{ -- Time
"datetime",
style = "%a %R",
icon = "",
'datetime',
style = '%a %R',
icon = '',
padding = { left = 0, right = 1 },
on_click = function()
vim.cmd("Telescope buffers")
vim.cmd('Telescope buffers')
end,
separator = { left = "", right = "" },
separator = { left = '', right = '' },
},
},
},
extensions = {
"neo-tree",
"lazy",
"aerial",
"fugitive",
"fzf",
"mason",
"overseer",
"toggleterm",
"nvim-dap-ui",
"quickfix",
"symbols-outline",
"trouble",
'neo-tree',
'lazy',
'aerial',
'fugitive',
'fzf',
'mason',
'overseer',
'toggleterm',
'nvim-dap-ui',
'quickfix',
'symbols-outline',
'trouble',
minimap_extension,
},
}
-- do not add trouble symbols if aerial is enabled
-- And allow it to be overriden for some buffer types (see autocmds)
if vim.g.trouble_lualine and LazyVim.has("trouble.nvim") then
local trouble = require("trouble")
if vim.g.trouble_lualine and LazyVim.has('trouble.nvim') then
local trouble = require('trouble')
local symbols = trouble.statusline({
mode = "symbols",
mode = 'symbols',
groups = {},
title = false,
filter = { range = true },
format = "{kind_icon}{symbol.name:Normal}",
hl_group = "lualine_c_normal",
format = '{kind_icon}{symbol.name:Normal}',
hl_group = 'lualine_c_normal',
})
table.insert(opts.sections.lualine_c, {
symbols and symbols.get,
+1 -1
View File
@@ -7,7 +7,7 @@
-- │ No Statusline │
-- ╰─────────────────────────────────────────────────────────╯
if vim.g.statusline ~= "none" then
if vim.g.statusline ~= 'none' then
return {}
end
+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
+45 -45
View File
@@ -6,32 +6,32 @@
return {
{ -- Smart-Splits
"mrjones2014/smart-splits.nvim",
'mrjones2014/smart-splits.nvim',
lazy = false,
build = require("data.types").smart_splits.build(),
build = require('data.types').smart_splits.build(),
},
{ -- Image Renderer
"3rd/image.nvim",
ft = require("data.types").image,
'3rd/image.nvim',
ft = require('data.types').image,
config = function()
require("image").setup({
backend = "kitty", -- Kitty will provide the best experience, but you need a compatible terminal
processor = "magick_cli",
kitty_method = "normal",
require('image').setup({
backend = 'kitty', -- Kitty will provide the best experience, but you need a compatible terminal
processor = 'magick_cli',
kitty_method = 'normal',
integrations = {
markdown = {
enabled = true,
clear_in_insert_mode = false,
download_remote_images = true,
only_render_image_at_cursor = false,
filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here
filetypes = { 'markdown', 'vimwiki' }, -- markdown extensions (ie. quarto) can go here
},
neorg = {
enabled = true,
clear_in_insert_mode = false,
download_remote_images = true,
only_render_image_at_cursor = false,
filetypes = { "norg" },
filetypes = { 'norg' },
},
html = {
enabled = false,
@@ -46,20 +46,20 @@ return {
max_width_window_percentage = math.huge,
window_overlap_clear_enabled = false,
window_overlap_clear_ft_ignore = {
"cmp_menu",
"cmp_docs",
"neotree",
"neominimap",
"minimap",
"",
'cmp_menu',
'cmp_docs',
'neotree',
'neominimap',
'minimap',
'',
},
hijack_file_patterns = {
"*.png",
"*.jpg",
"*.jpeg",
"*.gif",
"*.webp",
"*.avif",
'*.png',
'*.jpg',
'*.jpeg',
'*.gif',
'*.webp',
'*.avif',
}, -- render image files as images when opened
})
end,
@@ -73,51 +73,51 @@ return {
end,
},
{ -- ToggleTerm
"akinsho/toggleterm.nvim",
event = "VeryLazy",
keys = require("data.keys").toggleterm,
'akinsho/toggleterm.nvim',
event = 'VeryLazy',
keys = require('data.keys').toggleterm,
config = function()
require("toggleterm").setup(require("data.types").toggleterm)
require('toggleterm').setup(require('data.types').toggleterm)
end,
},
{ -- Kitty-Runner
"jghauser/kitty-runner.nvim",
cond = require("data.func").is_kitty(),
'jghauser/kitty-runner.nvim',
cond = require('data.func').is_kitty(),
},
{ -- Kitty-Scrollback
"mikesmithgh/kitty-scrollback.nvim",
'mikesmithgh/kitty-scrollback.nvim',
enabled = true,
lazy = true,
cmd = require("data.cmd").kitty_scrollback,
event = { "User KittyScrollbackLaunch" },
version = "*",
cmd = require('data.cmd').kitty_scrollback,
event = { 'User KittyScrollbackLaunch' },
version = '*',
config = function() -- Using Kitty-Scrollback
if require("data.func").is_kitty_scrollback() then
require("kitty-scrollback").setup()
if require('data.func').is_kitty_scrollback() then
require('kitty-scrollback').setup()
end
end,
cond = require("data.func").is_kitty_scrollback(),
cond = require('data.func').is_kitty_scrollback(),
},
{ -- Nekifoch
"NeViRAIDE/nekifoch.nvim",
'NeViRAIDE/nekifoch.nvim',
lazy = true,
cmd = require("data.cmd").nekifoch,
cmd = require('data.cmd').nekifoch,
opts = {
kitty_conf_path = vim.env.HOME .. "/.kittyoverrides",
kitty_conf_path = vim.env.HOME .. '/.kittyoverrides',
},
keys = require("data.keys").nekifoch,
cond = require("data.func").is_kitty(),
keys = require('data.keys').nekifoch,
cond = require('data.func').is_kitty(),
},
{ -- WezTerm
"willothy/wezterm.nvim",
'willothy/wezterm.nvim',
config = true,
cond = require("data.func").is_wezterm(),
cond = require('data.func').is_wezterm(),
},
{ -- Tmux
"aserowy/tmux.nvim",
'aserowy/tmux.nvim',
config = function()
return require("tmux").setup()
return require('tmux').setup()
end,
cond = require("data.func").is_tmux(),
cond = require('data.func').is_tmux(),
},
}
+48 -48
View File
@@ -6,117 +6,117 @@
return {
{ -- Tokyonight
"folke/tokyonight.nvim",
'folke/tokyonight.nvim',
lazy = true, -- Override
name = "tokyonight",
name = 'tokyonight',
opts = {
style = "night",
style = 'night',
},
},
{ -- Catppuccin
"catppuccin/nvim",
'catppuccin/nvim',
lazy = false, -- Override
priority = 1000,
name = "catppuccin",
opts = require("data.types").catppuccin,
name = 'catppuccin',
opts = require('data.types').catppuccin,
},
{ -- Ayu
"Shatur/neovim-ayu",
'Shatur/neovim-ayu',
lazy = true,
name = "ayu",
name = 'ayu',
},
{ -- Dracula
"Mofiqul/dracula.nvim",
'Mofiqul/dracula.nvim',
lazy = true,
name = "dracula",
name = 'dracula',
},
{ -- Eldritch
"eldritch-theme/eldritch.nvim",
'eldritch-theme/eldritch.nvim',
lazy = true,
name = "eldritch",
name = 'eldritch',
},
{ -- Flow
"0xstepit/flow.nvim",
'0xstepit/flow.nvim',
lazy = true,
name = "flow",
name = 'flow',
},
{ -- Github-theme
"projekt0n/github-nvim-theme",
'projekt0n/github-nvim-theme',
lazy = true,
name = "github-nvim-theme",
name = 'github-nvim-theme',
},
{ -- Gruvbox
"ellisonleao/gruvbox.nvim",
'ellisonleao/gruvbox.nvim',
lazy = true,
name = "gruvbox",
name = 'gruvbox',
},
{ -- Kanagawa
"rebelot/kanagawa.nvim",
'rebelot/kanagawa.nvim',
lazy = true,
name = "kanagawa",
name = 'kanagawa',
},
{ -- Monochrome
"kdheepak/monochrome.nvim",
'kdheepak/monochrome.nvim',
lazy = true,
name = "monochrome",
name = 'monochrome',
},
{ -- NeoFusion
"diegoulloao/neofusion.nvim",
'diegoulloao/neofusion.nvim',
lazy = true,
name = "neofusion",
name = 'neofusion',
},
{ -- Nord
"shaunsingh/nord.nvim",
'shaunsingh/nord.nvim',
lazy = true,
name = "nord",
name = 'nord',
},
{ -- One Dark Pro
"olimorris/onedarkpro.nvim",
'olimorris/onedarkpro.nvim',
lazy = true,
name = "onedarkpro",
name = 'onedarkpro',
},
{ -- Oxocarbon
"nyoom-engineering/oxocarbon.nvim",
'nyoom-engineering/oxocarbon.nvim',
lazy = true,
name = "oxocarbon",
name = 'oxocarbon',
},
{ -- Paper
"https://gitlab.com/yorickpeterse/vim-paper.git",
'https://gitlab.com/yorickpeterse/vim-paper.git',
lazy = true,
name = "vim-paper",
name = 'vim-paper',
},
{ -- Rose-Pine
"rose-pine/neovim",
name = "rose-pine",
'rose-pine/neovim',
name = 'rose-pine',
lazy = true,
},
{ -- Umbra
"LZDQ/umbra.nvim",
'LZDQ/umbra.nvim',
lazy = true,
name = "umbra",
name = 'umbra',
},
{ -- Zenbones
"zenbones-theme/zenbones.nvim",
name = "zenbones",
'zenbones-theme/zenbones.nvim',
name = 'zenbones',
lazy = true,
dependencies = require("data.deps").zenbones,
dependencies = require('data.deps').zenbones,
},
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ UTILITIES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
{ -- Transparent
"xiyaowong/transparent.nvim",
'xiyaowong/transparent.nvim',
lazy = true,
keys = require("data.keys").transparent,
cmd = require("data.cmd").transparent,
keys = require('data.keys').transparent,
cmd = require('data.cmd').transparent,
},
{ -- Auto Dark Mode
"f-person/auto-dark-mode.nvim",
'f-person/auto-dark-mode.nvim',
lazy = true,
opts = require("data.types").auto_dark_mode,
cond = require("data.cond").auto_dark_mode,
opts = require('data.types').auto_dark_mode,
cond = require('data.cond').auto_dark_mode,
},
{ -- Highlight colors
"brenoprata10/nvim-highlight-colors",
event = "BufReadPre",
opts = require("data.types").hightlight_colors,
'brenoprata10/nvim-highlight-colors',
event = 'BufReadPre',
opts = require('data.types').hightlight_colors,
},
}
+96 -88
View File
@@ -6,19 +6,19 @@
return {
{ -- Chezmoi
import = "lazyvim.plugins.extras.util.chezmoi",
import = 'lazyvim.plugins.extras.util.chezmoi',
},
{ -- Dotfiles plugins
import = "lazyvim.plugins.extras.util.dot",
import = 'lazyvim.plugins.extras.util.dot',
},
{ -- Env file no diagnostics
"nvim-treesitter/nvim-treesitter",
'nvim-treesitter/nvim-treesitter',
opts = function(_)
vim.api.nvim_create_augroup("EnvFileDiagnostics", { clear = true })
vim.api.nvim_create_augroup('EnvFileDiagnostics', { clear = true })
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
group = "EnvFileDiagnostics",
pattern = { "*.env", "*.env.*" },
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
group = 'EnvFileDiagnostics',
pattern = { '*.env', '*.env.*' },
callback = function()
vim.diagnostic.enable(false)
end,
@@ -26,75 +26,76 @@ return {
end,
},
{ -- Wakatime
"wakatime/vim-wakatime",
'wakatime/vim-wakatime',
cond = vim.g.usewakatime,
},
{ -- Link following
"chrishrb/gx.nvim",
'chrishrb/gx.nvim',
lazy = true,
cmd = require("data.cmd").gx,
keys = require("data.keys").gx,
cmd = require('data.cmd').gx,
keys = require('data.keys').gx,
init = function()
vim.g.netrw_nogx = 1
end,
dependencies = require("data.deps").gx,
dependencies = require('data.deps').gx,
config = true,
},
{ -- Ripgrep substitute
"chrisgrieser/nvim-rip-substitute",
event = "InsertEnter",
cmd = require("data.cmd").ripsub,
keys = require("data.keys").ripsub,
'chrisgrieser/nvim-rip-substitute',
event = 'InsertEnter',
cmd = require('data.cmd').ripsub,
keys = require('data.keys').ripsub,
},
{ -- Unception
"samjwill/nvim-unception",
'samjwill/nvim-unception',
init = function()
vim.g.unception_block_while_host_edits = true
end,
},
{ -- Codesnap
"mistricky/codesnap.nvim",
cond = require("data.func").check_global_var("codesnap", true, true),
'mistricky/codesnap.nvim',
cond = require('data.func').check_global_var('codesnap', true, true),
lazy = true,
build = "make",
opts = require("data.types").codesnap,
cmd = require("data.cmd").codesnap,
keys = require("data.keys").codesnap,
build = 'make',
opts = require('data.types').codesnap,
cmd = require('data.cmd').codesnap,
keys = require('data.keys').codesnap,
},
{ -- Kulala
"mistweaverco/kulala.nvim",
ft = require("data.types").kulala.ft,
'mistweaverco/kulala.nvim',
ft = require('data.types').kulala.ft,
opts = {},
},
{ -- Hardtime
"m4xshen/hardtime.nvim",
dependencies = require("data.deps").hardtime,
'm4xshen/hardtime.nvim',
lazy = false,
dependencies = require('data.deps').hardtime,
opts = function()
return { enabled = vim.g.usehardtime }
end,
},
{ -- CapsWord
"dmtrKovalenko/caps-word.nvim",
'dmtrKovalenko/caps-word.nvim',
lazy = true,
opts = {},
keys = require("data.keys").capsword,
keys = require('data.keys').capsword,
},
{ -- Music Controls
"AntonVanAssche/music-controls.nvim",
cond = require("data.func").check_global_var("usemusic", true, true),
dependencies = require("data.deps").musiccontrols,
'AntonVanAssche/music-controls.nvim',
cond = require('data.func').check_global_var('usemusic', true, true),
dependencies = require('data.deps').musiccontrols,
opts = {
default_player = "YoutubeMusic",
default_player = 'YoutubeMusic',
},
},
{ -- Qalc
"Apeiros-46B/qalc.nvim",
cmd = require("data.cmd").qalc,
keys = require("data.keys").qalc,
'Apeiros-46B/qalc.nvim',
cmd = require('data.cmd').qalc,
keys = require('data.keys').qalc,
opts = {
bufname = "qalc",
set_ft = "qalc",
yank_default_register = "+",
bufname = 'qalc',
set_ft = 'qalc',
yank_default_register = '+',
diagnostics = {
underline = true,
virtual_text = true,
@@ -105,54 +106,54 @@ return {
},
},
{ -- Remote-nvim
"amitds1997/remote-nvim.nvim",
'amitds1997/remote-nvim.nvim',
lazy = true,
version = "*", -- Pin to GitHub releases
dependencies = require("data.deps").remotenvim,
version = '*', -- Pin to GitHub releases
dependencies = require('data.deps').remotenvim,
config = true,
},
{ -- Encourage
"r-cha/encourage.nvim",
cond = require("data.func").check_global_var("encourage", true, true),
'r-cha/encourage.nvim',
cond = require('data.func').check_global_var('encourage', true, true),
config = true,
},
{ -- Helpview
"OXY2DEV/helpview.nvim",
ft = "help",
dependencies = require("data.deps").needs_treesitter,
'OXY2DEV/helpview.nvim',
ft = 'help',
dependencies = require('data.deps').needs_treesitter,
},
{ -- Suda
"lambdalisue/vim-suda",
cmd = require("data.cmd").suda,
config = require("data.types").suda,
'lambdalisue/vim-suda',
cmd = require('data.cmd').suda,
config = require('data.types').suda,
},
-- { -- Pigeon
-- "Pheon-Dev/pigeon",
-- config = require('data.types').pigeon,
-- },
{ -- Discord Presence
"IogaMaster/neocord",
event = "VeryLazy",
cond = require("data.func").check_global_var("usediscord", true, true),
'IogaMaster/neocord',
event = 'VeryLazy',
cond = require('data.func').check_global_var('usediscord', true, true),
opts = {
logo = "https://raw.githubusercontent.com/rootiest/rootiest-nvim/b949af32e72db9fc35c18e14e2088710dc36dd15/logo/icon.png",
main_image = "logo",
blacklist = { "bin: No such file or directory" },
logo = 'https://raw.githubusercontent.com/rootiest/rootiest-nvim/b949af32e72db9fc35c18e14e2088710dc36dd15/logo/icon.png',
main_image = 'logo',
blacklist = { 'bin: No such file or directory' },
file_assets = {},
},
},
{ -- Floating Help
"Tyler-Barham/floating-help.nvim",
'Tyler-Barham/floating-help.nvim',
opts = {
width = 0.8, -- Whole numbers are columns/rows
height = 0.9, -- Decimals are a percentage of the editor
position = "C", -- NW,N,NW,W,C,E,SW,S,SE (C==center)
border = "rounded", -- rounded,double,single
position = 'C', -- NW,N,NW,W,C,E,SW,S,SE (C==center)
border = 'rounded', -- rounded,double,single
},
cmd = {
"FloatingHelp",
"FloatingHelpClose",
"FloatingHelpToggle",
'FloatingHelp',
'FloatingHelpClose',
'FloatingHelpToggle',
},
init = function()
vim.g.floating_help = true
@@ -161,7 +162,7 @@ return {
---@param abbrev string The abbreviation to replace
---@param expansion string The expansion to replace it with
local function cmd_abbrev(abbrev, expansion)
local cmd = "cabbr "
local cmd = 'cabbr '
.. abbrev
.. ' <c-r>=(getcmdpos() == 1 && getcmdtype() == ":" ? "'
.. expansion
@@ -171,18 +172,18 @@ return {
vim.cmd(cmd)
end
-- Replace native help commands with floating help
cmd_abbrev("h", "FloatingHelp")
cmd_abbrev("help", "FloatingHelp")
cmd_abbrev("helpc", "FloatingHelpClose")
cmd_abbrev("helpclose", "FloatingHelpClose")
cmd_abbrev('h', 'FloatingHelp')
cmd_abbrev('help', 'FloatingHelp')
cmd_abbrev('helpc', 'FloatingHelpClose')
cmd_abbrev('helpclose', 'FloatingHelpClose')
end,
},
{ -- Timer
"alex-popov-tech/timer.nvim",
'alex-popov-tech/timer.nvim',
},
{ -- Image-Clip
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
'HakonHarnes/img-clip.nvim',
event = 'VeryLazy',
opts = {
default = {
embed_image_as_base64 = false,
@@ -196,10 +197,10 @@ return {
},
},
{ -- Multicursor
"jake-stewart/multicursor.nvim",
branch = "1.0",
'jake-stewart/multicursor.nvim',
branch = '1.0',
config = function()
local mc = require("multicursor-nvim")
local mc = require('multicursor-nvim')
mc.setup({
-- set to true if you want multicursor undo history
@@ -207,37 +208,37 @@ return {
shallowUndo = false,
-- set to empty table to disable signs
signs = { "", "󰇀", "" },
signs = { '', '󰇀', '' },
})
end,
},
{
"itsvinayak/nvim-notes.nvim",
'itsvinayak/nvim-notes.nvim',
dependencies = {
"nvim-telescope/telescope.nvim", -- Add Telescope as a dependency
"folke/which-key.nvim", -- Add WhichKey as a dependency
'nvim-telescope/telescope.nvim', -- Add Telescope as a dependency
'folke/which-key.nvim', -- Add WhichKey as a dependency
},
config = function()
require("notes").setup({
require('notes').setup({
-- Optional configurations
path = "~/.my_notes", -- Custom path for notes
path = '~/.my_notes', -- Custom path for notes
log_enabled = true, -- Enable logging
log_level = "INFO", -- Set log level to INFO
log_level = 'INFO', -- Set log level to INFO
})
end,
},
{ -- FloatTerm
"voldikss/vim-floaterm",
'voldikss/vim-floaterm',
},
{ -- bufferlist
"EL-MASTOR/bufferlist.nvim",
'EL-MASTOR/bufferlist.nvim',
lazy = true,
keys = { { "<Leader>bl", desc = "Open bufferlist" } }, -- keymap to load the plugin, it should be the same as keymap.open_buflist
keys = { { '<Leader>bl', desc = 'Open bufferlist' } }, -- keymap to load the plugin, it should be the same as keymap.open_buflist
opts = {},
},
{ -- showkeys
"nvchad/showkeys",
cmd = "ShowkeysToggle",
'nvchad/showkeys',
cmd = 'ShowkeysToggle',
opts = {
timeout = 1,
maxkeys = 5,
@@ -245,13 +246,20 @@ return {
},
},
{
"stevearc/oil.nvim",
'stevearc/oil.nvim',
---@module 'oil'
---@type oil.SetupOpts
opts = {},
-- Optional dependencies
dependencies = { { "echasnovski/mini.icons", opts = {} } },
dependencies = { { 'echasnovski/mini.icons', opts = {} } },
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons
},
{ "https://codeberg.org/jrop/u.nvim/", lazy = true },
{ -- Utlitities Framework
'jrop/u.nvim',
lazy = true,
},
{ -- Co-op (Neovim Co-routines Framework)
'gregorias/coop.nvim',
lazy = false,
},
}
+1 -1
View File
@@ -2,4 +2,4 @@ column_width = 80
indent_type = "Spaces"
indent_width = 2
line_endings = "Unix"
quote_style = "AutoPreferDouble"
quote_style = "AutoPreferSingle"