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