💅 style(list): update require statement from require("lib.util") to require('lib.util')
This commit is contained in:
2 files changed
+306
-306
No files matched your search
@@ -27,7 +27,7 @@ mcphub.setup({
|
|||||||
on_ready = function(hub) end,
|
on_ready = function(hub) end,
|
||||||
on_error = function(err) end,
|
on_error = function(err) end,
|
||||||
|
|
||||||
use_bundled_binary = false,
|
use_bundled_binary = true,
|
||||||
|
|
||||||
-- server_url = nil, -- defaults to `http://localhost:port`
|
-- server_url = nil, -- defaults to `http://localhost:port`
|
||||||
shutdown_delay = 600000, -- 10 minutes
|
shutdown_delay = 600000, -- 10 minutes
|
||||||
|
|||||||
+305
-305
@@ -1,144 +1,144 @@
|
|||||||
local util = require("lib.util")
|
local util = require('lib.util')
|
||||||
local function load_config(package)
|
local function load_config(package)
|
||||||
return function()
|
return function()
|
||||||
require("plugins." .. package)
|
require('plugins.' .. package)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local plugins = {
|
local plugins = {
|
||||||
-- UI
|
-- UI
|
||||||
{
|
{
|
||||||
"navarasu/onedark.nvim",
|
'navarasu/onedark.nvim',
|
||||||
config = load_config("ui.onedark"),
|
config = load_config('ui.onedark'),
|
||||||
lazy = false,
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
},
|
},
|
||||||
{ "nvim-tree/nvim-web-devicons" },
|
{ 'nvim-tree/nvim-web-devicons' },
|
||||||
{
|
{
|
||||||
"folke/snacks.nvim",
|
'folke/snacks.nvim',
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = load_config("ui.snacks"),
|
config = load_config('ui.snacks'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
'nvim-lualine/lualine.nvim',
|
||||||
config = load_config("ui.lualine"),
|
config = load_config('ui.lualine'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/which-key.nvim",
|
'folke/which-key.nvim',
|
||||||
config = load_config("ui.which-key"),
|
config = load_config('ui.which-key'),
|
||||||
event = "VeryLazy",
|
event = 'VeryLazy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lewis6991/gitsigns.nvim",
|
'lewis6991/gitsigns.nvim',
|
||||||
config = load_config("ui.gitsigns"),
|
config = load_config('ui.gitsigns'),
|
||||||
cmd = "Gitsigns",
|
cmd = 'Gitsigns',
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"2kabhishek/markit.nvim",
|
'2kabhishek/markit.nvim',
|
||||||
config = load_config("ui.markit"),
|
config = load_config('ui.markit'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Editor
|
-- Editor
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
'nvim-treesitter/nvim-treesitter',
|
||||||
build = ":TSUpdate",
|
build = ':TSUpdate',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-treesitter/nvim-treesitter-refactor",
|
'nvim-treesitter/nvim-treesitter-refactor',
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
'nvim-treesitter/nvim-treesitter-textobjects',
|
||||||
"RRethy/nvim-treesitter-textsubjects",
|
'RRethy/nvim-treesitter-textsubjects',
|
||||||
},
|
},
|
||||||
config = load_config("editor.treesitter"),
|
config = load_config('editor.treesitter'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"windwp/nvim-ts-autotag",
|
'windwp/nvim-ts-autotag',
|
||||||
event = "InsertEnter",
|
event = 'InsertEnter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"echasnovski/mini.bracketed",
|
'echasnovski/mini.bracketed',
|
||||||
config = load_config("editor.bracketed"),
|
config = load_config('editor.bracketed'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"echasnovski/mini.pairs",
|
'echasnovski/mini.pairs',
|
||||||
config = load_config("editor.pairs"),
|
config = load_config('editor.pairs'),
|
||||||
event = "InsertEnter",
|
event = 'InsertEnter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"echasnovski/mini.surround",
|
'echasnovski/mini.surround',
|
||||||
version = "*",
|
version = '*',
|
||||||
config = load_config("editor.surround"),
|
config = load_config('editor.surround'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"echasnovski/mini.ai",
|
'echasnovski/mini.ai',
|
||||||
version = "*",
|
version = '*',
|
||||||
config = load_config("editor.ai"),
|
config = load_config('editor.ai'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"chrisgrieser/nvim-spider",
|
'chrisgrieser/nvim-spider',
|
||||||
config = load_config("editor.spider"),
|
config = load_config('editor.spider'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
-- Language
|
-- Language
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
'neovim/nvim-lspconfig',
|
||||||
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
dependencies = { 'williamboman/mason-lspconfig.nvim' },
|
||||||
config = load_config("lang.lspconfig"),
|
config = load_config('lang.lspconfig'),
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/lazydev.nvim",
|
'folke/lazydev.nvim',
|
||||||
ft = "lua",
|
ft = 'lua',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvimdev/lspsaga.nvim",
|
'nvimdev/lspsaga.nvim',
|
||||||
config = load_config("lang.lspsaga"),
|
config = load_config('lang.lspsaga'),
|
||||||
event = "LspAttach",
|
event = 'LspAttach',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
'williamboman/mason.nvim',
|
||||||
config = load_config("lang.mason"),
|
config = load_config('lang.mason'),
|
||||||
cmd = "Mason",
|
cmd = 'Mason',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvimtools/none-ls.nvim",
|
'nvimtools/none-ls.nvim',
|
||||||
dependencies = { "jay-babu/mason-null-ls.nvim" },
|
dependencies = { 'jay-babu/mason-null-ls.nvim' },
|
||||||
config = load_config("lang.null-ls"),
|
config = load_config('lang.null-ls'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"saghen/blink.cmp",
|
'saghen/blink.cmp',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"rafamadriz/friendly-snippets",
|
'rafamadriz/friendly-snippets',
|
||||||
"Kaiser-Yang/blink-cmp-avante",
|
'Kaiser-Yang/blink-cmp-avante',
|
||||||
"L3MON4D3/LuaSnip",
|
'L3MON4D3/LuaSnip',
|
||||||
version = "v2.*",
|
version = 'v2.*',
|
||||||
},
|
},
|
||||||
version = "*",
|
version = '*',
|
||||||
config = load_config("lang.blink"),
|
config = load_config('lang.blink'),
|
||||||
opts_extend = { "sources.default" },
|
opts_extend = { 'sources.default' },
|
||||||
event = { "InsertEnter" },
|
event = { 'InsertEnter' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mg979/vim-visual-multi",
|
'mg979/vim-visual-multi',
|
||||||
branch = "master", -- Required to avoid loading the legacy branch
|
branch = 'master', -- Required to avoid loading the legacy branch
|
||||||
event = { "BufReadPost", "BufNewFile" }, -- Load earlier when buffer is ready
|
event = { 'BufReadPost', 'BufNewFile' }, -- Load earlier when buffer is ready
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.VM_leader = "\\"
|
vim.g.VM_leader = '\\'
|
||||||
vim.g.VM_maps = {
|
vim.g.VM_maps = {
|
||||||
["Find Under"] = "<C-d>", -- Changed to match VSCode
|
['Find Under'] = '<C-d>', -- Changed to match VSCode
|
||||||
["Find Subword Under"] = "<C-d>", -- Changed to match VSCode
|
['Find Subword Under'] = '<C-d>', -- Changed to match VSCode
|
||||||
["Select All"] = "<M-a>",
|
['Select All'] = '<M-a>',
|
||||||
["Add Cursor Down"] = "<C-S-Down>", -- More intuitive than <C-j>
|
['Add Cursor Down'] = '<C-S-Down>', -- More intuitive than <C-j>
|
||||||
["Add Cursor Up"] = "<C-S-Up>", -- More intuitive than <C-k>
|
['Add Cursor Up'] = '<C-S-Up>', -- More intuitive than <C-k>
|
||||||
["Select Cursor Down"] = "<C-S-Down>",
|
['Select Cursor Down'] = '<C-S-Down>',
|
||||||
["Select Cursor Up"] = "<C-S-Up>",
|
['Select Cursor Up'] = '<C-S-Up>',
|
||||||
}
|
}
|
||||||
-- Keep default mappings for better functionality
|
-- Keep default mappings for better functionality
|
||||||
vim.g.VM_default_mappings = 1
|
vim.g.VM_default_mappings = 1
|
||||||
@@ -147,31 +147,31 @@ local plugins = {
|
|||||||
|
|
||||||
-- AI
|
-- AI
|
||||||
{
|
{
|
||||||
"zbirenbaum/copilot.lua",
|
'zbirenbaum/copilot.lua',
|
||||||
dependencies = { "giuxtaposition/blink-cmp-copilot" },
|
dependencies = { 'giuxtaposition/blink-cmp-copilot' },
|
||||||
config = load_config("ai.copilot"),
|
config = load_config('ai.copilot'),
|
||||||
event = "InsertEnter",
|
event = 'InsertEnter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"yetone/avante.nvim",
|
'yetone/avante.nvim',
|
||||||
version = false,
|
version = false,
|
||||||
config = load_config("ai.avante"),
|
config = load_config('ai.avante'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
build = "make",
|
build = 'make',
|
||||||
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"MunifTanjim/nui.nvim",
|
'MunifTanjim/nui.nvim',
|
||||||
"nvim-lua/plenary.nvim",
|
'nvim-lua/plenary.nvim',
|
||||||
"ravitemer/mcphub.nvim",
|
'ravitemer/mcphub.nvim',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ravitemer/mcphub.nvim",
|
'ravitemer/mcphub.nvim',
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
cmd = "MCPHub",
|
cmd = 'MCPHub',
|
||||||
build = "npm install -g mcp-hub@latest", -- use this if you want to use the global mcp-hub
|
-- build = "npm install -g mcp-hub@latest", -- use this if you want to use the global mcp-hub
|
||||||
-- build = 'bundled_build.lua',
|
build = 'bundled_build.lua',
|
||||||
config = load_config("ai.mcphub"),
|
config = load_config('ai.mcphub'),
|
||||||
},
|
},
|
||||||
-- {
|
-- {
|
||||||
-- 'L3MON4D3/LuaSnip',
|
-- 'L3MON4D3/LuaSnip',
|
||||||
@@ -188,232 +188,232 @@ local plugins = {
|
|||||||
|
|
||||||
-- Tools
|
-- Tools
|
||||||
{
|
{
|
||||||
"echasnovski/mini.files",
|
'echasnovski/mini.files',
|
||||||
version = "*",
|
version = '*',
|
||||||
config = load_config("tools.files"),
|
config = load_config('tools.files'),
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>ee",
|
'<leader>ee',
|
||||||
function()
|
function()
|
||||||
require("mini.files").open(util.get_file_path(), true)
|
require('mini.files').open(util.get_file_path(), true)
|
||||||
end,
|
end,
|
||||||
desc = "Explorer",
|
desc = 'Explorer',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"michaelb/sniprun",
|
'michaelb/sniprun',
|
||||||
build = "bash ./install.sh",
|
build = 'bash ./install.sh',
|
||||||
config = load_config("tools.sniprun"),
|
config = load_config('tools.sniprun'),
|
||||||
cmd = "SnipRun",
|
cmd = 'SnipRun',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"windwp/nvim-spectre",
|
'windwp/nvim-spectre',
|
||||||
config = load_config("tools.spectre"),
|
config = load_config('tools.spectre'),
|
||||||
cmd = "Spectre",
|
cmd = 'Spectre',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/flash.nvim",
|
'folke/flash.nvim',
|
||||||
config = load_config("tools.flash"),
|
config = load_config('tools.flash'),
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"s",
|
's',
|
||||||
mode = { "n", "x", "o" },
|
mode = { 'n', 'x', 'o' },
|
||||||
function()
|
function()
|
||||||
require("flash").jump()
|
require('flash').jump()
|
||||||
end,
|
end,
|
||||||
desc = "Flash",
|
desc = 'Flash',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"S",
|
'S',
|
||||||
mode = { "n", "x", "o" },
|
mode = { 'n', 'x', 'o' },
|
||||||
function()
|
function()
|
||||||
require("flash").treesitter()
|
require('flash').treesitter()
|
||||||
end,
|
end,
|
||||||
desc = "Flash Treesitter",
|
desc = 'Flash Treesitter',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numToStr/Navigator.nvim",
|
'numToStr/Navigator.nvim',
|
||||||
config = load_config("tools.navigator"),
|
config = load_config('tools.navigator'),
|
||||||
event = "VeryLazy",
|
event = 'VeryLazy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"iamcco/markdown-preview.nvim",
|
'iamcco/markdown-preview.nvim',
|
||||||
build = function()
|
build = function()
|
||||||
vim.fn["mkdp#util#install"]()
|
vim.fn['mkdp#util#install']()
|
||||||
end,
|
end,
|
||||||
ft = "markdown",
|
ft = 'markdown',
|
||||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview" },
|
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"uga-rosa/ccc.nvim",
|
'uga-rosa/ccc.nvim',
|
||||||
config = load_config("tools.ccc"),
|
config = load_config('tools.ccc'),
|
||||||
cmd = { "CccHighlighterToggle", "CccConvert", "CccPick" },
|
cmd = { 'CccHighlighterToggle', 'CccConvert', 'CccPick' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ruifm/gitlinker.nvim",
|
'ruifm/gitlinker.nvim',
|
||||||
config = load_config("tools.gitlinker"),
|
config = load_config('tools.gitlinker'),
|
||||||
keys = "<leader>yg",
|
keys = '<leader>yg',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tpope/vim-fugitive",
|
'tpope/vim-fugitive',
|
||||||
cmd = "Git",
|
cmd = 'Git',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
||||||
"akinsho/toggleterm.nvim",
|
'akinsho/toggleterm.nvim',
|
||||||
cmd = { "ToggleTerm" },
|
cmd = { 'ToggleTerm' },
|
||||||
version = "v2.*",
|
version = 'v2.*',
|
||||||
config = load_config("tools.toggleterm"),
|
config = load_config('tools.toggleterm'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mistricky/codesnap.nvim",
|
'mistricky/codesnap.nvim',
|
||||||
lazy = true,
|
lazy = true,
|
||||||
build = "make",
|
build = 'make',
|
||||||
opts = {
|
opts = {
|
||||||
save_path = "~/Pictures/code-screenshots/",
|
save_path = '~/Pictures/code-screenshots/',
|
||||||
has_breadcrumbs = false,
|
has_breadcrumbs = false,
|
||||||
show_workspace = false,
|
show_workspace = false,
|
||||||
bg_theme = "default",
|
bg_theme = 'default',
|
||||||
watermark = "S4NKALP",
|
watermark = 'S4NKALP',
|
||||||
code_font_family = "Iosevka NF",
|
code_font_family = 'Iosevka NF',
|
||||||
code_font_size = 12,
|
code_font_size = 12,
|
||||||
},
|
},
|
||||||
cmd = { "CodeSnap", "CodeSnapSave", "CodeSnapHighlight", "CodeSnapASCII" },
|
cmd = { 'CodeSnap', 'CodeSnapSave', 'CodeSnapHighlight', 'CodeSnapASCII' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cvigilv/esqueleto.nvim",
|
'cvigilv/esqueleto.nvim',
|
||||||
event = "VeryLazy",
|
event = 'VeryLazy',
|
||||||
opts = {
|
opts = {
|
||||||
directories = {
|
directories = {
|
||||||
vim.fn.stdpath("config") .. "/templates",
|
vim.fn.stdpath('config') .. '/templates',
|
||||||
},
|
},
|
||||||
patterns = {
|
patterns = {
|
||||||
-- File
|
-- File
|
||||||
"README",
|
'README',
|
||||||
"LICENSE",
|
'LICENSE',
|
||||||
-- Filetype
|
-- Filetype
|
||||||
"sh",
|
'sh',
|
||||||
"markdown",
|
'markdown',
|
||||||
"python",
|
'python',
|
||||||
"lua",
|
'lua',
|
||||||
"html",
|
'html',
|
||||||
"vue",
|
'vue',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"LudoPinelli/comment-box.nvim",
|
'LudoPinelli/comment-box.nvim',
|
||||||
event = "BufReadPre",
|
event = 'BufReadPre',
|
||||||
opts = {
|
opts = {
|
||||||
box_width = 70,
|
box_width = 70,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mistricky/codesnap.nvim",
|
'mistricky/codesnap.nvim',
|
||||||
lazy = true,
|
lazy = true,
|
||||||
build = "make",
|
build = 'make',
|
||||||
opts = {
|
opts = {
|
||||||
save_path = "~/Pictures/screenshots/code",
|
save_path = '~/Pictures/screenshots/code',
|
||||||
has_breadcrumbs = false,
|
has_breadcrumbs = false,
|
||||||
show_workspace = false,
|
show_workspace = false,
|
||||||
bg_theme = "default",
|
bg_theme = 'default',
|
||||||
watermark = "S4NKALP",
|
watermark = 'S4NKALP',
|
||||||
code_font_family = "Iosevka NF",
|
code_font_family = 'Iosevka NF',
|
||||||
code_font_size = 12,
|
code_font_size = 12,
|
||||||
},
|
},
|
||||||
cmd = { "CodeSnap", "CodeSnapSave", "CodeSnapHighlight", "CodeSnapASCII" },
|
cmd = { 'CodeSnap', 'CodeSnapSave', 'CodeSnapHighlight', 'CodeSnapASCII' },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- 2kabhishek
|
-- 2kabhishek
|
||||||
{
|
{
|
||||||
"2kabhishek/pickme.nvim",
|
'2kabhishek/pickme.nvim',
|
||||||
cmd = "PickMe",
|
cmd = 'PickMe',
|
||||||
event = "VeryLazy",
|
event = 'VeryLazy',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"folke/snacks.nvim",
|
'folke/snacks.nvim',
|
||||||
-- 'nvim-telescope/telescope.nvim',
|
-- 'nvim-telescope/telescope.nvim',
|
||||||
-- 'ibhagwan/fzf-lua',
|
-- 'ibhagwan/fzf-lua',
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
picker_provider = "snacks",
|
picker_provider = 'snacks',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"2kabhishek/termim.nvim",
|
'2kabhishek/termim.nvim',
|
||||||
cmd = { "Fterm", "FTerm", "Sterm", "STerm", "Vterm", "VTerm" },
|
cmd = { 'Fterm', 'FTerm', 'Sterm', 'STerm', 'Vterm', 'VTerm' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"2kabhishek/octohub.nvim",
|
'2kabhishek/octohub.nvim',
|
||||||
cmd = {
|
cmd = {
|
||||||
"OctoRepos",
|
'OctoRepos',
|
||||||
"OctoReposByCreated",
|
'OctoReposByCreated',
|
||||||
"OctoReposByForks",
|
'OctoReposByForks',
|
||||||
"OctoReposByIssues",
|
'OctoReposByIssues',
|
||||||
"OctoReposByLanguages",
|
'OctoReposByLanguages',
|
||||||
"OctoReposByNames",
|
'OctoReposByNames',
|
||||||
"OctoReposByPushed",
|
'OctoReposByPushed',
|
||||||
"OctoReposBySize",
|
'OctoReposBySize',
|
||||||
"OctoReposByStars",
|
'OctoReposByStars',
|
||||||
"OctoReposByUpdated",
|
'OctoReposByUpdated',
|
||||||
"OctoReposTypeArchived",
|
'OctoReposTypeArchived',
|
||||||
"OctoReposTypeForked",
|
'OctoReposTypeForked',
|
||||||
"OctoReposTypePrivate",
|
'OctoReposTypePrivate',
|
||||||
"OctoReposTypeStarred",
|
'OctoReposTypeStarred',
|
||||||
"OctoReposTypeTemplate",
|
'OctoReposTypeTemplate',
|
||||||
"OctoRepo",
|
'OctoRepo',
|
||||||
"OctoStats",
|
'OctoStats',
|
||||||
"OctoActivityStats",
|
'OctoActivityStats',
|
||||||
"OctoContributionStats",
|
'OctoContributionStats',
|
||||||
"OctoRepoStats",
|
'OctoRepoStats',
|
||||||
"OctoProfile",
|
'OctoProfile',
|
||||||
"OctoRepoWeb",
|
'OctoRepoWeb',
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
"<leader>goa",
|
'<leader>goa',
|
||||||
"<leader>goA",
|
'<leader>goA',
|
||||||
"<leader>gob",
|
'<leader>gob',
|
||||||
"<leader>goc",
|
'<leader>goc',
|
||||||
"<leader>gof",
|
'<leader>gof',
|
||||||
"<leader>goF",
|
'<leader>goF',
|
||||||
"<leader>gog",
|
'<leader>gog',
|
||||||
"<leader>goi",
|
'<leader>goi',
|
||||||
"<leader>gol",
|
'<leader>gol',
|
||||||
"<leader>goo",
|
'<leader>goo',
|
||||||
"<leader>gop",
|
'<leader>gop',
|
||||||
"<leader>goP",
|
'<leader>goP',
|
||||||
"<leader>gor",
|
'<leader>gor',
|
||||||
"<leader>gos",
|
'<leader>gos',
|
||||||
"<leader>goS",
|
'<leader>goS',
|
||||||
"<leader>got",
|
'<leader>got',
|
||||||
"<leader>goT",
|
'<leader>goT',
|
||||||
"<leader>gou",
|
'<leader>gou',
|
||||||
"<leader>goU",
|
'<leader>goU',
|
||||||
"<leader>gow",
|
'<leader>gow',
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"2kabhishek/utils.nvim",
|
'2kabhishek/utils.nvim',
|
||||||
},
|
},
|
||||||
config = load_config("tools.octohub"),
|
config = load_config('tools.octohub'),
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Optional
|
-- Optional
|
||||||
{
|
{
|
||||||
"sphamba/smear-cursor.nvim",
|
'sphamba/smear-cursor.nvim',
|
||||||
event = "VeryLazy",
|
event = 'VeryLazy',
|
||||||
cond = vim.g.neovide == nil,
|
cond = vim.g.neovide == nil,
|
||||||
opts = {
|
opts = {
|
||||||
stiffness = 0.5,
|
stiffness = 0.5,
|
||||||
trailing_stiffness = 0.49,
|
trailing_stiffness = 0.49,
|
||||||
},
|
},
|
||||||
enabled = util.get_user_config("enable_smear_cursor", false),
|
enabled = util.get_user_config('enable_smear_cursor', false),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvzone/showkeys",
|
'nvzone/showkeys',
|
||||||
cmd = "ShowkeysToggle",
|
cmd = 'ShowkeysToggle',
|
||||||
opts = {
|
opts = {
|
||||||
timeout = 1,
|
timeout = 1,
|
||||||
maxkeys = 10,
|
maxkeys = 10,
|
||||||
@@ -421,13 +421,13 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"wakatime/vim-wakatime",
|
'wakatime/vim-wakatime',
|
||||||
event = { "VimEnter" },
|
event = { 'VimEnter' },
|
||||||
lazy = false,
|
lazy = false,
|
||||||
enabled = util.get_user_config("enable_wakatime", false),
|
enabled = util.get_user_config('enable_wakatime', false),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"JohnnyJumper/neotypist.nvim",
|
'JohnnyJumper/neotypist.nvim',
|
||||||
opts = {
|
opts = {
|
||||||
notify_interval = 60 * 100, -- one minute
|
notify_interval = 60 * 100, -- one minute
|
||||||
high = 80,
|
high = 80,
|
||||||
@@ -436,124 +436,124 @@ local plugins = {
|
|||||||
notify = true,
|
notify = true,
|
||||||
update_time = 300,
|
update_time = 300,
|
||||||
virt_text = function(wpm)
|
virt_text = function(wpm)
|
||||||
return ("🚀 WPM: %.0f"):format(wpm)
|
return ('🚀 WPM: %.0f'):format(wpm)
|
||||||
end,
|
end,
|
||||||
virt_text_pos = "right_align",
|
virt_text_pos = 'right_align',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"m4xshen/hardtime.nvim",
|
'm4xshen/hardtime.nvim',
|
||||||
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
|
dependencies = { 'MunifTanjim/nui.nvim', 'nvim-lua/plenary.nvim' },
|
||||||
cmd = "Hardtime",
|
cmd = 'Hardtime',
|
||||||
enabled = util.get_user_config("enable_trainer", false),
|
enabled = util.get_user_config('enable_trainer', false),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kndndrj/nvim-dbee",
|
'kndndrj/nvim-dbee',
|
||||||
dependencies = { "MunifTanjim/nui.nvim" },
|
dependencies = { 'MunifTanjim/nui.nvim' },
|
||||||
build = function()
|
build = function()
|
||||||
-- "curl", "wget", "bitsadmin", "go"
|
-- "curl", "wget", "bitsadmin", "go"
|
||||||
require("dbee").install("curl")
|
require('dbee').install('curl')
|
||||||
end,
|
end,
|
||||||
config = load_config("tools.dbee"),
|
config = load_config('tools.dbee'),
|
||||||
cmd = "DBToggle",
|
cmd = 'DBToggle',
|
||||||
enabled = util.get_user_config("enable_db_explorer", false),
|
enabled = util.get_user_config('enable_db_explorer', false),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap",
|
'mfussenegger/nvim-dap',
|
||||||
dependencies = { "rcarriga/nvim-dap-ui" },
|
dependencies = { 'rcarriga/nvim-dap-ui' },
|
||||||
config = load_config("tools.dap"),
|
config = load_config('tools.dap'),
|
||||||
cmd = { "DapUIToggle", "DapToggleRepl", "DapToggleBreakpoint" },
|
cmd = { 'DapUIToggle', 'DapToggleRepl', 'DapToggleBreakpoint' },
|
||||||
enabled = util.get_user_config("enable_debugger", false),
|
enabled = util.get_user_config('enable_debugger', false),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-neotest/neotest",
|
'nvim-neotest/neotest',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-neotest/nvim-nio",
|
'nvim-neotest/nvim-nio',
|
||||||
"olimorris/neotest-rspec",
|
'olimorris/neotest-rspec',
|
||||||
"nvim-neotest/neotest-jest",
|
'nvim-neotest/neotest-jest',
|
||||||
"nvim-neotest/neotest-python",
|
'nvim-neotest/neotest-python',
|
||||||
},
|
},
|
||||||
config = load_config("tools.neotest"),
|
config = load_config('tools.neotest'),
|
||||||
cmd = "Neotest",
|
cmd = 'Neotest',
|
||||||
enabled = util.get_user_config("enable_test_runner", false),
|
enabled = util.get_user_config('enable_test_runner', false),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local treesitter_parsers = {
|
local treesitter_parsers = {
|
||||||
"bash",
|
'bash',
|
||||||
"css",
|
'css',
|
||||||
"dart",
|
'dart',
|
||||||
"elixir",
|
'elixir',
|
||||||
"gitcommit",
|
'gitcommit',
|
||||||
"go",
|
'go',
|
||||||
"html",
|
'html',
|
||||||
"java",
|
'java',
|
||||||
"javascript",
|
'javascript',
|
||||||
"json",
|
'json',
|
||||||
"lua",
|
'lua',
|
||||||
"markdown",
|
'markdown',
|
||||||
"markdown_inline", -- markdown code blocks
|
'markdown_inline', -- markdown code blocks
|
||||||
"python",
|
'python',
|
||||||
"ruby",
|
'ruby',
|
||||||
"rust",
|
'rust',
|
||||||
"typescript",
|
'typescript',
|
||||||
"vim",
|
'vim',
|
||||||
"vimdoc",
|
'vimdoc',
|
||||||
"yaml",
|
'yaml',
|
||||||
}
|
}
|
||||||
|
|
||||||
local null_ls_sources = {
|
local null_ls_sources = {
|
||||||
"shellcheck",
|
'shellcheck',
|
||||||
}
|
}
|
||||||
|
|
||||||
local lsp_servers = {
|
local lsp_servers = {
|
||||||
"bashls",
|
'bashls',
|
||||||
"jsonls",
|
'jsonls',
|
||||||
"typos_lsp",
|
'typos_lsp',
|
||||||
"vimls",
|
'vimls',
|
||||||
"lua_ls",
|
'lua_ls',
|
||||||
"tailwindcss", -- Add Tailwind CSS LSP
|
'tailwindcss', -- Add Tailwind CSS LSP
|
||||||
}
|
}
|
||||||
|
|
||||||
if util.is_present("npm") then
|
if util.is_present('npm') then
|
||||||
table.insert(lsp_servers, "eslint")
|
table.insert(lsp_servers, 'eslint')
|
||||||
table.insert(lsp_servers, "ts_ls")
|
table.insert(lsp_servers, 'ts_ls')
|
||||||
end
|
end
|
||||||
|
|
||||||
if util.is_present("gem") then
|
if util.is_present('gem') then
|
||||||
table.insert(lsp_servers, "solargraph")
|
table.insert(lsp_servers, 'solargraph')
|
||||||
table.insert(lsp_servers, "rubocop")
|
table.insert(lsp_servers, 'rubocop')
|
||||||
end
|
end
|
||||||
|
|
||||||
if util.is_present("go") then
|
if util.is_present('go') then
|
||||||
table.insert(lsp_servers, "gopls")
|
table.insert(lsp_servers, 'gopls')
|
||||||
end
|
end
|
||||||
|
|
||||||
if util.is_present("dart") then
|
if util.is_present('dart') then
|
||||||
table.insert(lsp_servers, "dartls")
|
table.insert(lsp_servers, 'dartls')
|
||||||
end
|
end
|
||||||
|
|
||||||
if util.is_present("java") then
|
if util.is_present('java') then
|
||||||
table.insert(lsp_servers, "jdtls")
|
table.insert(lsp_servers, 'jdtls')
|
||||||
end
|
end
|
||||||
|
|
||||||
if util.is_present("pip") then
|
if util.is_present('pip') then
|
||||||
table.insert(lsp_servers, "ruff")
|
table.insert(lsp_servers, 'ruff')
|
||||||
table.insert(lsp_servers, "pylsp")
|
table.insert(lsp_servers, 'pylsp')
|
||||||
end
|
end
|
||||||
|
|
||||||
if util.is_present("mix") then
|
if util.is_present('mix') then
|
||||||
table.insert(lsp_servers, "elixirls")
|
table.insert(lsp_servers, 'elixirls')
|
||||||
end
|
end
|
||||||
|
|
||||||
if util.is_present("cargo") then
|
if util.is_present('cargo') then
|
||||||
table.insert(lsp_servers, "rust_analyzer")
|
table.insert(lsp_servers, 'rust_analyzer')
|
||||||
end
|
end
|
||||||
|
|
||||||
plugins = vim.tbl_extend("force", plugins, util.get_user_config("user_plugins", {}))
|
plugins = vim.tbl_extend('force', plugins, util.get_user_config('user_plugins', {}))
|
||||||
lsp_servers = vim.tbl_extend("force", lsp_servers, util.get_user_config("user_lsp_servers", {}))
|
lsp_servers = vim.tbl_extend('force', lsp_servers, util.get_user_config('user_lsp_servers', {}))
|
||||||
null_ls_sources = vim.tbl_extend("force", null_ls_sources, util.get_user_config("user_null_ls_sources", {}))
|
null_ls_sources = vim.tbl_extend('force', null_ls_sources, util.get_user_config('user_null_ls_sources', {}))
|
||||||
treesitter_parsers = vim.tbl_extend("force", treesitter_parsers, util.get_user_config("user_tresitter_parsers", {}))
|
treesitter_parsers = vim.tbl_extend('force', treesitter_parsers, util.get_user_config('user_tresitter_parsers', {}))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
plugins = plugins,
|
plugins = plugins,
|
||||||
|
|||||||
Reference in new issue
Block a user