feat: add nvimdots
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
local completion = {}
|
||||
local use_copilot = require("core.settings").use_copilot
|
||||
|
||||
completion["neovim/nvim-lspconfig"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("completion.lsp"),
|
||||
dependencies = {
|
||||
{ "williamboman/mason.nvim" },
|
||||
{ "williamboman/mason-lspconfig.nvim" },
|
||||
{ "folke/neoconf.nvim" },
|
||||
{
|
||||
"Jint-lzxy/lsp_signature.nvim",
|
||||
config = require("completion.lsp-signature"),
|
||||
},
|
||||
},
|
||||
}
|
||||
completion["nvimdev/lspsaga.nvim"] = {
|
||||
lazy = true,
|
||||
event = "LspAttach",
|
||||
config = require("completion.lspsaga"),
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
}
|
||||
completion["stevearc/aerial.nvim"] = {
|
||||
lazy = true,
|
||||
event = "LspAttach",
|
||||
config = require("completion.aerial"),
|
||||
}
|
||||
completion["DNLHC/glance.nvim"] = {
|
||||
lazy = true,
|
||||
event = "LspAttach",
|
||||
config = require("completion.glance"),
|
||||
}
|
||||
completion["joechrisellis/lsp-format-modifications.nvim"] = {
|
||||
lazy = true,
|
||||
event = "LspAttach",
|
||||
}
|
||||
completion["nvimtools/none-ls.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("completion.null-ls"),
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
},
|
||||
}
|
||||
completion["hrsh7th/nvim-cmp"] = {
|
||||
lazy = true,
|
||||
event = "InsertEnter",
|
||||
config = require("completion.cmp"),
|
||||
dependencies = {
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
build = "make install_jsregexp",
|
||||
config = require("completion.luasnip"),
|
||||
dependencies = { "rafamadriz/friendly-snippets" },
|
||||
},
|
||||
{ "lukas-reineke/cmp-under-comparator" },
|
||||
{ "saadparwaiz1/cmp_luasnip" },
|
||||
{ "hrsh7th/cmp-nvim-lsp" },
|
||||
{ "hrsh7th/cmp-nvim-lua" },
|
||||
{ "andersevenrud/cmp-tmux" },
|
||||
{ "hrsh7th/cmp-path" },
|
||||
{ "f3fora/cmp-spell" },
|
||||
{ "hrsh7th/cmp-buffer" },
|
||||
{ "kdheepak/cmp-latex-symbols" },
|
||||
{ "ray-x/cmp-treesitter", commit = "c8e3a74" },
|
||||
-- { "tzachar/cmp-tabnine", build = "./install.sh", config = require("completion.tabnine") },
|
||||
-- {
|
||||
-- "jcdickinson/codeium.nvim",
|
||||
-- dependencies = {
|
||||
-- "nvim-lua/plenary.nvim",
|
||||
-- "MunifTanjim/nui.nvim",
|
||||
-- },
|
||||
-- config = require("completion.codeium"),
|
||||
-- },
|
||||
},
|
||||
}
|
||||
if use_copilot then
|
||||
completion["zbirenbaum/copilot.lua"] = {
|
||||
lazy = true,
|
||||
cmd = "Copilot",
|
||||
event = "InsertEnter",
|
||||
config = require("completion.copilot"),
|
||||
dependencies = {
|
||||
{
|
||||
"zbirenbaum/copilot-cmp",
|
||||
config = require("completion.copilot-cmp"),
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
return completion
|
||||
@@ -0,0 +1,132 @@
|
||||
local editor = {}
|
||||
|
||||
editor["olimorris/persisted.nvim"] = {
|
||||
lazy = true,
|
||||
cmd = {
|
||||
"SessionToggle",
|
||||
"SessionStart",
|
||||
"SessionStop",
|
||||
"SessionSave",
|
||||
"SessionLoad",
|
||||
"SessionLoadLast",
|
||||
"SessionLoadFromFile",
|
||||
"SessionDelete",
|
||||
},
|
||||
config = require("editor.persisted"),
|
||||
}
|
||||
editor["m4xshen/autoclose.nvim"] = {
|
||||
lazy = true,
|
||||
event = "InsertEnter",
|
||||
config = require("editor.autoclose"),
|
||||
}
|
||||
editor["LunarVim/bigfile.nvim"] = {
|
||||
lazy = false,
|
||||
config = require("editor.bigfile"),
|
||||
cond = require("core.settings").load_big_files_faster,
|
||||
}
|
||||
editor["ojroques/nvim-bufdel"] = {
|
||||
lazy = true,
|
||||
cmd = { "BufDel", "BufDelAll", "BufDelOthers" },
|
||||
}
|
||||
-- NOTE: `flash.nvim` is a powerful plugin that can be used as partial or complete replacements for:
|
||||
-- > `hop.nvim`,
|
||||
-- > `wilder.nvim`
|
||||
-- > `nvim-treehopper`
|
||||
-- Considering its steep learning curve as well as backward compatibility issues...
|
||||
-- > We have no plan to remove the above plugins for the time being.
|
||||
-- But as usual, you can always tweak the plugin to your liking.
|
||||
editor["folke/flash.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("editor.flash"),
|
||||
}
|
||||
editor["numToStr/Comment.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("editor.comment"),
|
||||
}
|
||||
editor["sindrets/diffview.nvim"] = {
|
||||
lazy = true,
|
||||
cmd = { "DiffviewOpen", "DiffviewClose" },
|
||||
config = require("editor.diffview"),
|
||||
}
|
||||
editor["echasnovski/mini.align"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("editor.align"),
|
||||
}
|
||||
editor["smoka7/hop.nvim"] = {
|
||||
lazy = true,
|
||||
version = "*",
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("editor.hop"),
|
||||
}
|
||||
editor["tzachar/local-highlight.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "BufReadPost", "BufAdd", "BufNewFile" },
|
||||
config = require("editor.local-highlight"),
|
||||
}
|
||||
editor["brenoprata10/nvim-highlight-colors"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("editor.highlight-colors"),
|
||||
}
|
||||
editor["romainl/vim-cool"] = {
|
||||
lazy = true,
|
||||
event = { "CursorMoved", "InsertEnter" },
|
||||
}
|
||||
editor["lambdalisue/suda.vim"] = {
|
||||
lazy = true,
|
||||
cmd = { "SudaRead", "SudaWrite" },
|
||||
init = require("editor.suda"),
|
||||
}
|
||||
editor["tpope/vim-sleuth"] = {
|
||||
lazy = true,
|
||||
event = { "BufNewFile", "BufReadPost", "BufFilePost" },
|
||||
}
|
||||
editor["nvim-pack/nvim-spectre"] = {
|
||||
lazy = true,
|
||||
cmd = "Spectre",
|
||||
}
|
||||
editor["mrjones2014/smart-splits.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHoldI", "CursorHold" },
|
||||
config = require("editor.splits"),
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
-- :treesitter related plugins --
|
||||
----------------------------------------------------------------------
|
||||
editor["nvim-treesitter/nvim-treesitter"] = {
|
||||
lazy = true,
|
||||
build = function()
|
||||
if vim.fn.has("gui_running") == 1 then
|
||||
vim.api.nvim_command([[TSUpdate]])
|
||||
end
|
||||
end,
|
||||
event = "BufReadPre",
|
||||
config = require("editor.treesitter"),
|
||||
dependencies = {
|
||||
{ "andymass/vim-matchup" },
|
||||
{ "mfussenegger/nvim-treehopper" },
|
||||
{ "nvim-treesitter/nvim-treesitter-textobjects" },
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
config = require("editor.autotag"),
|
||||
},
|
||||
{
|
||||
"hiphish/rainbow-delimiters.nvim",
|
||||
config = require("editor.rainbow_delims"),
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-context",
|
||||
config = require("editor.ts-context"),
|
||||
},
|
||||
{
|
||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||
config = require("editor.ts-context-commentstring"),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return editor
|
||||
@@ -0,0 +1,40 @@
|
||||
local lang = {}
|
||||
|
||||
lang["kevinhwang91/nvim-bqf"] = {
|
||||
lazy = true,
|
||||
ft = "qf",
|
||||
config = require("lang.bqf"),
|
||||
dependencies = {
|
||||
{ "junegunn/fzf", build = ":call fzf#install()" },
|
||||
},
|
||||
}
|
||||
lang["ray-x/go.nvim"] = {
|
||||
lazy = true,
|
||||
ft = { "go", "gomod", "gosum" },
|
||||
build = ":GoInstallBinaries",
|
||||
config = require("lang.go"),
|
||||
dependencies = { "ray-x/guihua.lua" },
|
||||
}
|
||||
lang["mrcjkb/rustaceanvim"] = {
|
||||
lazy = true,
|
||||
ft = "rust",
|
||||
version = "*",
|
||||
init = require("lang.rust"),
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
}
|
||||
lang["Saecki/crates.nvim"] = {
|
||||
lazy = true,
|
||||
event = "BufReadPost Cargo.toml",
|
||||
config = require("lang.crates"),
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
}
|
||||
lang["iamcco/markdown-preview.nvim"] = {
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
build = ":call mkdp#util#install()",
|
||||
}
|
||||
lang["chrisbra/csv.vim"] = {
|
||||
lazy = true,
|
||||
ft = "csv",
|
||||
}
|
||||
return lang
|
||||
@@ -0,0 +1,140 @@
|
||||
local tool = {}
|
||||
|
||||
tool["tpope/vim-fugitive"] = {
|
||||
lazy = true,
|
||||
cmd = { "Git", "G" },
|
||||
}
|
||||
-- This is specifically for fcitx5 users who code in languages other than English
|
||||
-- tool["pysan3/fcitx5.nvim"] = {
|
||||
-- lazy = true,
|
||||
-- event = "BufReadPost",
|
||||
-- cond = vim.fn.executable("fcitx5-remote") == 1,
|
||||
-- config = require("tool.fcitx5"),
|
||||
-- }
|
||||
tool["Bekaboo/dropbar.nvim"] = {
|
||||
lazy = false,
|
||||
config = require("tool.dropbar"),
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
},
|
||||
}
|
||||
tool["nvim-tree/nvim-tree.lua"] = {
|
||||
lazy = true,
|
||||
cmd = {
|
||||
"NvimTreeToggle",
|
||||
"NvimTreeOpen",
|
||||
"NvimTreeFindFile",
|
||||
"NvimTreeFindFileToggle",
|
||||
"NvimTreeRefresh",
|
||||
},
|
||||
config = require("tool.nvim-tree"),
|
||||
}
|
||||
tool["ibhagwan/smartyank.nvim"] = {
|
||||
lazy = true,
|
||||
event = "BufReadPost",
|
||||
config = require("tool.smartyank"),
|
||||
}
|
||||
tool["michaelb/sniprun"] = {
|
||||
lazy = true,
|
||||
-- You need to cd to `~/.local/share/nvim/site/lazy/sniprun/` and execute `bash ./install.sh`,
|
||||
-- if you encountered error about no executable sniprun found.
|
||||
build = "bash ./install.sh",
|
||||
cmd = { "SnipRun", "SnipReset", "SnipInfo" },
|
||||
config = require("tool.sniprun"),
|
||||
}
|
||||
tool["akinsho/toggleterm.nvim"] = {
|
||||
lazy = true,
|
||||
cmd = {
|
||||
"ToggleTerm",
|
||||
"ToggleTermSetName",
|
||||
"ToggleTermToggleAll",
|
||||
"ToggleTermSendVisualLines",
|
||||
"ToggleTermSendCurrentLine",
|
||||
"ToggleTermSendVisualSelection",
|
||||
},
|
||||
config = require("tool.toggleterm"),
|
||||
}
|
||||
tool["folke/trouble.nvim"] = {
|
||||
lazy = true,
|
||||
cmd = { "Trouble", "TroubleToggle", "TroubleRefresh" },
|
||||
config = require("tool.trouble"),
|
||||
}
|
||||
tool["folke/which-key.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("tool.which-key"),
|
||||
}
|
||||
tool["gelguy/wilder.nvim"] = {
|
||||
lazy = true,
|
||||
event = "CmdlineEnter",
|
||||
config = require("tool.wilder"),
|
||||
dependencies = { "romgrk/fzy-lua-native" },
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
-- Telescope Plugins --
|
||||
----------------------------------------------------------------------
|
||||
tool["nvim-telescope/telescope.nvim"] = {
|
||||
lazy = true,
|
||||
cmd = "Telescope",
|
||||
config = require("tool.telescope"),
|
||||
dependencies = {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "nvim-tree/nvim-web-devicons" },
|
||||
{ "jvgrootveld/telescope-zoxide" },
|
||||
{ "debugloop/telescope-undo.nvim" },
|
||||
{ "nvim-telescope/telescope-frecency.nvim" },
|
||||
{ "nvim-telescope/telescope-live-grep-args.nvim" },
|
||||
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
||||
{
|
||||
"FabianWirth/search.nvim",
|
||||
config = require("tool.search"),
|
||||
},
|
||||
{
|
||||
"ahmedkhalf/project.nvim",
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("tool.project"),
|
||||
},
|
||||
{
|
||||
"aaronhallaert/advanced-git-search.nvim",
|
||||
cmd = { "AdvancedGitSearch" },
|
||||
dependencies = {
|
||||
"tpope/vim-rhubarb",
|
||||
"tpope/vim-fugitive",
|
||||
"sindrets/diffview.nvim",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
-- DAP Plugins --
|
||||
----------------------------------------------------------------------
|
||||
tool["mfussenegger/nvim-dap"] = {
|
||||
lazy = true,
|
||||
cmd = {
|
||||
"DapSetLogLevel",
|
||||
"DapShowLog",
|
||||
"DapContinue",
|
||||
"DapToggleBreakpoint",
|
||||
"DapToggleRepl",
|
||||
"DapStepOver",
|
||||
"DapStepInto",
|
||||
"DapStepOut",
|
||||
"DapTerminate",
|
||||
},
|
||||
config = require("tool.dap"),
|
||||
dependencies = {
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
config = require("tool.dap.dapui"),
|
||||
dependencies = {
|
||||
"nvim-neotest/nvim-nio",
|
||||
},
|
||||
},
|
||||
{ "jay-babu/mason-nvim-dap.nvim" },
|
||||
},
|
||||
}
|
||||
|
||||
return tool
|
||||
@@ -0,0 +1,71 @@
|
||||
local ui = {}
|
||||
|
||||
ui["goolord/alpha-nvim"] = {
|
||||
lazy = true,
|
||||
event = "BufWinEnter",
|
||||
config = require("ui.alpha"),
|
||||
}
|
||||
ui["akinsho/bufferline.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "BufReadPost", "BufAdd", "BufNewFile" },
|
||||
config = require("ui.bufferline"),
|
||||
}
|
||||
ui["Jint-lzxy/nvim"] = {
|
||||
lazy = false,
|
||||
branch = "refactor/syntax-highlighting",
|
||||
name = "catppuccin",
|
||||
config = require("ui.catppuccin"),
|
||||
}
|
||||
ui["j-hui/fidget.nvim"] = {
|
||||
lazy = true,
|
||||
event = "LspAttach",
|
||||
config = require("ui.fidget"),
|
||||
}
|
||||
ui["lewis6991/gitsigns.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("ui.gitsigns"),
|
||||
}
|
||||
ui["lukas-reineke/indent-blankline.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("ui.indent-blankline"),
|
||||
}
|
||||
ui["nvim-lualine/lualine.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "BufReadPost", "BufAdd", "BufNewFile" },
|
||||
config = require("ui.lualine"),
|
||||
}
|
||||
ui["zbirenbaum/neodim"] = {
|
||||
lazy = true,
|
||||
event = "LspAttach",
|
||||
config = require("ui.neodim"),
|
||||
}
|
||||
ui["karb94/neoscroll.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("ui.neoscroll"),
|
||||
}
|
||||
ui["rcarriga/nvim-notify"] = {
|
||||
lazy = true,
|
||||
event = "VeryLazy",
|
||||
config = require("ui.notify"),
|
||||
}
|
||||
ui["folke/paint.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("ui.paint"),
|
||||
}
|
||||
ui["folke/todo-comments.nvim"] = {
|
||||
lazy = true,
|
||||
event = { "CursorHold", "CursorHoldI" },
|
||||
config = require("ui.todo"),
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
}
|
||||
ui["dstein64/nvim-scrollview"] = {
|
||||
lazy = true,
|
||||
event = { "BufReadPost", "BufAdd", "BufNewFile" },
|
||||
config = require("ui.scrollview"),
|
||||
}
|
||||
|
||||
return ui
|
||||
Reference in New Issue
Block a user