mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
perf(nvim): Apply lazy load for all plugins
This commit is contained in:
parent
1716712787
commit
48331347fd
23 changed files with 274 additions and 203 deletions
12
Justfile
12
Justfile
|
|
@ -143,7 +143,7 @@ readline:
|
||||||
[linux]
|
[linux]
|
||||||
bash:
|
bash:
|
||||||
{{LN}} {{DOTFILES}}/tools/bash {{XDG_CONFIG_HOME}}/bash
|
{{LN}} {{DOTFILES}}/tools/bash {{XDG_CONFIG_HOME}}/bash
|
||||||
sudo cp $DOTFILES/tools/bash/xdg-compat.sh /etc/profile.d/xdg-compat.sh
|
sudo cp {{DOTFILES}}/tools/bash/xdg-compat.sh /etc/profile.d/xdg-compat.sh
|
||||||
|
|
||||||
[linux]
|
[linux]
|
||||||
keyd:
|
keyd:
|
||||||
|
|
@ -159,6 +159,16 @@ build_keyd:
|
||||||
git clone https://github.com/rvaiya/keyd $HOME/.local/build/keyd
|
git clone https://github.com/rvaiya/keyd $HOME/.local/build/keyd
|
||||||
cd $HOME/.local/build/keyd && make && sudo make install
|
cd $HOME/.local/build/keyd && make && sudo make install
|
||||||
|
|
||||||
|
[unix]
|
||||||
|
kitty:
|
||||||
|
which kitty
|
||||||
|
{{LN}} {{DOTFILES}}/tools/kitty {{XDG_CONFIG_HOME}}/kitty
|
||||||
|
|
||||||
|
[unix]
|
||||||
|
zotero:
|
||||||
|
curl -L https://github.com/syt2/zotero-addons/releases/download/V1.8.1/zotero-addons.xpi -o "$HOME/Downloads/zotero-addons.xpi"
|
||||||
|
|
||||||
|
|
||||||
[linux]
|
[linux]
|
||||||
flatpak:
|
flatpak:
|
||||||
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
|
|
|
||||||
10
platforms/linux/user-dirs.dirs
Normal file
10
platforms/linux/user-dirs.dirs
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Force to use English for directory names
|
||||||
|
|
||||||
|
XDG_DESKTOP_DIR="$HOME/Desktop"
|
||||||
|
XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
||||||
|
XDG_TEMPLATES_DIR="$HOME/Templates"
|
||||||
|
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||||
|
XDG_DOCUMENTS_DIR="$HOME/Documents"
|
||||||
|
XDG_MUSIC_DIR="$HOME/Music"
|
||||||
|
XDG_PICTURES_DIR="$HOME/Pictures"
|
||||||
|
XDG_VIDEOS_DIR="$HOME/Videos"
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
|
|
||||||
# Set XDG Base Directory Path
|
# Set XDG Base Directory Path
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
export XDG_CACHE_HOME="~/.cache"
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
export XDG_DATA_HOME="~/.local/share"
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
export XDG_STATE_HOME="~/.local/state"
|
export XDG_STATE_HOME="$HOME/.local/state"
|
||||||
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
||||||
|
|
||||||
# Source user's XDG-compliant Bash configs
|
# Source user's XDG-compliant Bash configs
|
||||||
|
|
|
||||||
|
|
@ -5,24 +5,16 @@ local M = {}
|
||||||
-- Ensure that the following servers are installed and set
|
-- Ensure that the following servers are installed and set
|
||||||
-- Use :Mason to list all available servers
|
-- Use :Mason to list all available servers
|
||||||
M.servers = {
|
M.servers = {
|
||||||
"ast_grep",
|
|
||||||
"bashls", -- Bash
|
"bashls", -- Bash
|
||||||
"clangd", -- C/C++
|
"clangd", -- C/C++
|
||||||
"cssls", -- CSS
|
|
||||||
"denols", -- Deno
|
|
||||||
"eslint", -- JavaScript
|
"eslint", -- JavaScript
|
||||||
"gopls", -- Go
|
"gopls", -- Go
|
||||||
"html", -- HTML
|
"html", -- HTML
|
||||||
"jsonls", -- JSON
|
"jsonls", -- JSON
|
||||||
"lua_ls", -- Lua
|
"lua_ls", -- Lua
|
||||||
"markdown_oxide", -- Markdown
|
-- "markdown_oxide", -- Markdown
|
||||||
"omnisharp", -- C# & F#
|
|
||||||
"powershell_es", -- PowerShell
|
|
||||||
"pyright", -- Python
|
"pyright", -- Python
|
||||||
"rust_analyzer", -- Rust
|
"rust_analyzer", -- Rust
|
||||||
"svelte", -- Svelte
|
|
||||||
"svlangserver", -- SystemVerilog
|
|
||||||
"tailwindcss", -- TailwindCSS
|
|
||||||
"taplo", -- TOML
|
"taplo", -- TOML
|
||||||
"ts_ls", -- TypeScript
|
"ts_ls", -- TypeScript
|
||||||
"vimls", -- vimscript
|
"vimls", -- vimscript
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ local leader_mappings = {
|
||||||
{ keys = "s", cmd = ":write<CR>", opts = { desc = "Save File" } },
|
{ keys = "s", cmd = ":write<CR>", opts = { desc = "Save File" } },
|
||||||
{ keys = "S", cmd = ":wall<CR>", opts = { desc = "Save All Files" } },
|
{ keys = "S", cmd = ":wall<CR>", opts = { desc = "Save All Files" } },
|
||||||
{ keys = "D", cmd = "!trash-rm %<CR>", opts = { desc = "Delete current file" } },
|
{ keys = "D", cmd = "!trash-rm %<CR>", opts = { desc = "Delete current file" } },
|
||||||
{ keys = "t", cmd = ":NvimTreeFindFileToggle<CR>", opts = { desc = "Toggle File Tree" } },
|
-- { keys = "t", cmd = ":NvimTreeFindFileToggle<CR>", opts = { desc = "Toggle File Tree" } },
|
||||||
{ keys = "o", cmd = ":!open %<CR>", opts = { desc = "Open file in default program" } },
|
{ keys = "o", cmd = ":!open %<CR>", opts = { desc = "Open file in default program" } },
|
||||||
{ keys = "R", cmd = renameCurrentBuffer, opts = { desc = "Rename current file" } },
|
{ keys = "R", cmd = renameCurrentBuffer, opts = { desc = "Rename current file" } },
|
||||||
{ keys = "x", cmd = ":Lazy<CR>", opts = { desc = "Open extension view" } },
|
{ keys = "x", cmd = ":Lazy<CR>", opts = { desc = "Open extension view" } },
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
M.event = "BufEnter"
|
||||||
|
|
||||||
M.global = {
|
M.global = {
|
||||||
{ mode = "n", keys = "<leader>E", cmd = ":NvimTreeToggle<CR>" },
|
{ mode = "n", keys = "<leader>E", cmd = ":NvimTreeToggle<CR>" },
|
||||||
{ mode = "n", keys = "<A-0>", cmd = ":NvimTreeFindFileToggle<CR>" },
|
{ mode = "n", keys = "<A-0>", cmd = ":NvimTreeFindFileToggle<CR>" },
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,19 @@
|
||||||
|
-- https://stackoverflow.com/a/73365602
|
||||||
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
|
group = vim.api.nvim_create_augroup("highlight_yank", {}),
|
||||||
|
desc = "Hightlight selection on yank",
|
||||||
|
pattern = "*",
|
||||||
|
callback = function()
|
||||||
|
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 500 })
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- Colorschemes
|
-- Colorschemes
|
||||||
{
|
{
|
||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
|
lazy = true,
|
||||||
opts = {
|
opts = {
|
||||||
flavor = "auto",
|
flavor = "auto",
|
||||||
background = {
|
background = {
|
||||||
|
|
@ -10,6 +21,7 @@ return {
|
||||||
dark = "mocha",
|
dark = "mocha",
|
||||||
},
|
},
|
||||||
integrations = {
|
integrations = {
|
||||||
|
-- lualine = true,
|
||||||
"lualine",
|
"lualine",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -20,6 +32,7 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
variant = "dawn",
|
variant = "dawn",
|
||||||
},
|
},
|
||||||
|
cmd = "Telescope colorscheme",
|
||||||
},
|
},
|
||||||
-- { "olimorris/onedarkpro.nvim", cmd = "Telescope colorscheme" },
|
-- { "olimorris/onedarkpro.nvim", cmd = "Telescope colorscheme" },
|
||||||
{ "rebelot/kanagawa.nvim", cmd = "Telescope colorscheme" },
|
{ "rebelot/kanagawa.nvim", cmd = "Telescope colorscheme" },
|
||||||
|
|
@ -28,20 +41,22 @@ return {
|
||||||
{ -- Modern Status Line
|
{ -- Modern Status Line
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.mod.lualine")
|
require("plugins.mod.lualine")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ -- Highlight yanked text
|
-- { -- Highlight yanked text
|
||||||
"gbprod/yanky.nvim",
|
-- "gbprod/yanky.nvim",
|
||||||
opts = {
|
-- event = "LazyFile",
|
||||||
highlight = {
|
-- opts = {
|
||||||
on_put = true,
|
-- highlight = {
|
||||||
on_yank = true,
|
-- on_put = true,
|
||||||
timer = 500,
|
-- on_yank = true,
|
||||||
},
|
-- timer = 500,
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
|
-- },
|
||||||
-- { import = "plugins.mod.alpha-nvim" }, -- Dashboard
|
-- { import = "plugins.mod.alpha-nvim" }, -- Dashboard
|
||||||
{ -- Breadcrumb
|
{ -- Breadcrumb
|
||||||
"Bekaboo/dropbar.nvim",
|
"Bekaboo/dropbar.nvim",
|
||||||
|
|
@ -88,6 +103,8 @@ return {
|
||||||
},
|
},
|
||||||
{ -- Highlight and navigate between TODOs
|
{ -- Highlight and navigate between TODOs
|
||||||
"folke/todo-comments.nvim",
|
"folke/todo-comments.nvim",
|
||||||
|
cmd = { "TodoTelescope" },
|
||||||
|
event = "BufRead",
|
||||||
opts = {},
|
opts = {},
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,10 @@ return {
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("luasnip.loaders.from_vscode").lazy_load({ paths = "~/.config/lsp-snippets" })
|
require("luasnip.loaders.from_vscode").lazy_load({ paths = "~/.config/lsp-snippets" })
|
||||||
-- require("luasnip.loaders.from_vscode").lazy_load()
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
-- {
|
||||||
"zbirenbaum/copilot-cmp",
|
-- "zbirenbaum/copilot-cmp",
|
||||||
opts = {},
|
-- opts = {},
|
||||||
-- config = function()
|
-- },
|
||||||
-- require("copilot_cmp").setup()
|
|
||||||
-- end,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
|
event = "BufReadPre",
|
||||||
config = function()
|
config = function()
|
||||||
local dap = require("dap")
|
local dap = require("dap")
|
||||||
dap.adapters.codelldb = {
|
dap.adapters.codelldb = {
|
||||||
|
|
@ -28,10 +29,13 @@ return {
|
||||||
"rcarriga/nvim-dap-ui",
|
"rcarriga/nvim-dap-ui",
|
||||||
opts = {},
|
opts = {},
|
||||||
dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" },
|
dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" },
|
||||||
|
cmd = "DapNew",
|
||||||
},
|
},
|
||||||
{ "theHamsta/nvim-dap-virtual-text", opts = {} },
|
{ "theHamsta/nvim-dap-virtual-text", opts = {}, cmd = "DapNew" },
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap-python",
|
"mfussenegger/nvim-dap-python",
|
||||||
|
event = "BufReadPost",
|
||||||
|
ft = "python",
|
||||||
config = function()
|
config = function()
|
||||||
require("dap-python").setup("uv")
|
require("dap-python").setup("uv")
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"folke/flash.nvim",
|
"folke/flash.nvim",
|
||||||
event = "VeryLazy",
|
event = "BufEnter",
|
||||||
opts = {},
|
opts = {},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
|
|
@ -63,7 +63,7 @@ return {
|
||||||
{
|
{
|
||||||
"kylechui/nvim-surround",
|
"kylechui/nvim-surround",
|
||||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||||
event = "VeryLazy",
|
event = "BufEnter",
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,18 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"rmagatti/auto-session",
|
"rmagatti/auto-session",
|
||||||
lazy = false,
|
event = "BufReadPre",
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
|
suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ import = "plugins.mod.nvim-tree" },
|
-- { import = "plugins.mod.nvim-tree" },
|
||||||
{ import = "plugins.mod.telescope" },
|
{ import = "plugins.mod.telescope" },
|
||||||
-- { import = "plugins.mod.fzf" },
|
-- { import = "plugins.mod.fzf" },
|
||||||
{
|
{
|
||||||
"ahmedkhalf/project.nvim",
|
"ahmedkhalf/project.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
opts = {
|
opts = {
|
||||||
detection_methods = { "lsp", "pattern" },
|
detection_methods = { "lsp", "pattern" },
|
||||||
patterns = { ".git", "Makefile", "package.json" },
|
patterns = { ".git", "Makefile", "package.json" },
|
||||||
|
|
@ -46,5 +47,14 @@ return {
|
||||||
-- },
|
-- },
|
||||||
{
|
{
|
||||||
"NeogitOrg/neogit",
|
"NeogitOrg/neogit",
|
||||||
|
-- dependencies = {
|
||||||
|
-- "nvim-lua/plenary.nvim", -- required
|
||||||
|
-- "nvim-telescope/telescope.nvim", -- optional
|
||||||
|
-- },
|
||||||
|
config = true,
|
||||||
|
-- event = "VeryLazy",
|
||||||
|
cmd = {
|
||||||
|
"Neogit",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"js0ny/luasnip-latex-snippets.nvim",
|
"js0ny/luasnip-latex-snippets.nvim",
|
||||||
|
ft = { "tex", "markdown" },
|
||||||
-- vimtex isn't required if using treesitter
|
-- vimtex isn't required if using treesitter
|
||||||
requires = { "L3MON4D3/LuaSnip", "lervag/vimtex" },
|
requires = { "L3MON4D3/LuaSnip", "lervag/vimtex" },
|
||||||
config = function()
|
config = function()
|
||||||
|
|
@ -20,10 +21,18 @@ return {
|
||||||
require("luasnip").config.setup({ enable_autosnippets = true })
|
require("luasnip").config.setup({ enable_autosnippets = true })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ "williamboman/mason.nvim", config = true },
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
cmd = "Mason",
|
||||||
|
build = ":MasonUpdate",
|
||||||
|
opts_extend = { "ensure_installed" },
|
||||||
|
opts = {
|
||||||
|
ensure_installed = require("config.servers").servers,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
lazy = false,
|
event = "BufReadPre",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "williamboman/mason.nvim" },
|
{ "williamboman/mason.nvim" },
|
||||||
{ "neovim/nvim-lspconfig" },
|
{ "neovim/nvim-lspconfig" },
|
||||||
|
|
@ -34,7 +43,7 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ import = "plugins.mod.conform-nvim" },
|
{ import = "plugins.mod.conform-nvim" },
|
||||||
{ "nvim-treesitter/nvim-treesitter-context" },
|
{ "nvim-treesitter/nvim-treesitter-context", lazy = true },
|
||||||
{
|
{
|
||||||
"NoahTheDuke/vim-just",
|
"NoahTheDuke/vim-just",
|
||||||
ft = { "just" },
|
ft = { "just" },
|
||||||
|
|
@ -58,9 +67,9 @@ return {
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
-- config = function(_, opts)
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
-- require("nvim-treesitter.configs").setup(opts)
|
||||||
end,
|
-- end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/lazydev.nvim",
|
"folke/lazydev.nvim",
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,24 @@
|
||||||
return {
|
return {
|
||||||
|
{ "nvim-lua/plenary.nvim", lazy = true },
|
||||||
{ "wakatime/vim-wakatime", lazy = false },
|
{ "wakatime/vim-wakatime", lazy = false },
|
||||||
{ import = "plugins.mod.toggleterm" },
|
{ import = "plugins.mod.toggleterm" },
|
||||||
{
|
-- {
|
||||||
"CRAG666/code_runner.nvim",
|
-- "CRAG666/code_runner.nvim",
|
||||||
config = true,
|
-- config = true,
|
||||||
keys = {
|
-- keys = {
|
||||||
{ "<leader>cr", "<cmd>RunCode<CR>", desc = "Run code" },
|
-- { "<leader>cr", "<cmd>RunCode<CR>", desc = "Run code" },
|
||||||
},
|
-- },
|
||||||
dependencies = {
|
-- dependencies = {
|
||||||
|
--
|
||||||
{
|
-- {
|
||||||
"CRAG666/betterTerm.nvim",
|
-- "CRAG666/betterTerm.nvim",
|
||||||
opts = {
|
-- opts = {
|
||||||
position = "bot",
|
-- position = "bot",
|
||||||
size = 15,
|
-- size = 15,
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
{ import = "plugins.mod.which-keys-nvim" },
|
{ import = "plugins.mod.which-keys-nvim" },
|
||||||
{ import = "plugins.mod.copilot-lua" },
|
{ import = "plugins.mod.copilot-lua" },
|
||||||
{ import = "plugins.mod.avante-nvim" },
|
{ import = "plugins.mod.avante-nvim" },
|
||||||
|
|
@ -27,7 +28,8 @@ return {
|
||||||
cmd = {
|
cmd = {
|
||||||
"Leet",
|
"Leet",
|
||||||
},
|
},
|
||||||
event = "VeryLazy",
|
lazy = true,
|
||||||
|
-- event = "VeryLazy",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
-- "ibhagwan/fzf-lua",
|
-- "ibhagwan/fzf-lua",
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ return {
|
||||||
-- support for image pasting
|
-- support for image pasting
|
||||||
"HakonHarnes/img-clip.nvim",
|
"HakonHarnes/img-clip.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
ft = { "avante", "markdown", "typst", "org", "tex" },
|
||||||
|
cmd = "PasteImage",
|
||||||
opts = {
|
opts = {
|
||||||
-- recommended settings
|
-- recommended settings
|
||||||
default = {
|
default = {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
return {
|
return {
|
||||||
"saghen/blink.cmp",
|
"saghen/blink.cmp",
|
||||||
-- optional: provides snippets for the snippet source
|
-- optional: provides snippets for the snippet source
|
||||||
dependencies = { "L3MON4D3/LuaSnip", version = "v2.*" },
|
-- dependencies = { "L3MON4D3/LuaSnip", version = "v2.*" },
|
||||||
|
|
||||||
-- use a release tag to download pre-built binaries
|
-- use a release tag to download pre-built binaries
|
||||||
version = "*",
|
version = "*",
|
||||||
|
event = "InsertEnter",
|
||||||
|
|
||||||
---@module 'blink.cmp'
|
---@module 'blink.cmp'
|
||||||
---@type blink.cmp.Config
|
---@type blink.cmp.Config
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ return {
|
||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
dependencies = "nvim-tree/nvim-web-devicons", -- 图标支持
|
dependencies = "nvim-tree/nvim-web-devicons", -- 图标支持
|
||||||
after = "catppuccin",
|
after = "catppuccin",
|
||||||
lazy = false,
|
event = "VeryLazy",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>b1", "<cmd>BufferLineGotoBuffer 1<CR>", desc = "Switch to Buffer #1" },
|
{ "<leader>b1", "<cmd>BufferLineGotoBuffer 1<CR>", desc = "Switch to Buffer #1" },
|
||||||
{ "<leader>b2", "<cmd>BufferLineGotoBuffer 2<CR>", desc = "Switch to Buffer #2" },
|
{ "<leader>b2", "<cmd>BufferLineGotoBuffer 2<CR>", desc = "Switch to Buffer #2" },
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@ return {
|
||||||
{ import = "plugins.mod.lang.markdown.render-markdown" },
|
{ import = "plugins.mod.lang.markdown.render-markdown" },
|
||||||
-- { import = "plugins.mod.lang.markdown.markview" },
|
-- { import = "plugins.mod.lang.markdown.markview" },
|
||||||
{ import = "plugins.mod.lang.markdown.obsidian-nvim" },
|
{ import = "plugins.mod.lang.markdown.obsidian-nvim" },
|
||||||
{ "bullets-vim/bullets.vim" },
|
{ "bullets-vim/bullets.vim", ft = "markdown" },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"MeanderingProgrammer/render-markdown.nvim",
|
"MeanderingProgrammer/render-markdown.nvim",
|
||||||
lazy = false,
|
event = "BufRead",
|
||||||
ft = { "markdown", "Avante" },
|
ft = { "markdown", "Avante" },
|
||||||
opts = {
|
opts = {
|
||||||
file_types = { "markdown", "Avante" },
|
file_types = { "markdown", "Avante" },
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
-- "js0ny/nvim-orgmode",
|
"nvim-orgmode/orgmode",
|
||||||
name = "orgmode",
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
"nvim-orgmode/telescope-orgmode.nvim",
|
"nvim-orgmode/telescope-orgmode.nvim",
|
||||||
"nvim-orgmode/org-bullets.nvim",
|
"nvim-orgmode/org-bullets.nvim",
|
||||||
"Saghen/blink.cmp",
|
"Saghen/blink.cmp",
|
||||||
},
|
},
|
||||||
branch = "feat-image-match-latex",
|
|
||||||
cmd = {
|
cmd = {
|
||||||
"Org",
|
"Org",
|
||||||
},
|
},
|
||||||
|
ft = {
|
||||||
|
"org",
|
||||||
|
"orgagenda",
|
||||||
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>A", "<cmd>Org agenda<CR>", desc = "Org Agenda" },
|
{ "<leader>A", "<cmd>Org agenda<CR>", desc = "Org Agenda" },
|
||||||
},
|
},
|
||||||
dir = "~/Source/Forks/nvim-orgmode",
|
event = "BufEnter *.org",
|
||||||
dev = true,
|
|
||||||
event = "VeryLazy",
|
|
||||||
config = function()
|
config = function()
|
||||||
require("orgmode").setup({
|
require("orgmode").setup({
|
||||||
org_agenda_files = "~/OrgFiles/tasks/*",
|
org_agenda_files = "~/OrgFiles/tasks/*",
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ Remote | Git Branch | Diagnostics | Command | | MID | | Line:Column | Indent | E
|
||||||
local config = {
|
local config = {
|
||||||
options = {
|
options = {
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
statusline = { "NvimTree", "alpha", "grug-far" },
|
statusline = { "NvimTree", "alpha", "grug-far", "snacks_dashboard" },
|
||||||
},
|
},
|
||||||
-- Disable sections and component separators
|
-- Disable sections and component separators
|
||||||
component_separators = { left = "", right = "" },
|
component_separators = { left = "", right = "" },
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
return {
|
return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = { "saghen/blink.cmp" },
|
dependencies = { "saghen/blink.cmp" },
|
||||||
|
event = {
|
||||||
|
"BufReadPost",
|
||||||
|
"BufWritePost",
|
||||||
|
"BufNewFile",
|
||||||
|
},
|
||||||
|
|
||||||
-- example using `opts` for defining servers
|
-- example using `opts` for defining servers
|
||||||
opts = {
|
opts = {
|
||||||
|
|
|
||||||
|
|
@ -7,17 +7,27 @@ return {
|
||||||
---@type snacks.Config
|
---@type snacks.Config
|
||||||
opts = {
|
opts = {
|
||||||
-- bigfile = { enabled = true },
|
-- bigfile = { enabled = true },
|
||||||
-- dashboard = { enabled = true },
|
dashboard = { enabled = true },
|
||||||
-- explorer = { enabled = true },
|
explorer = { enabled = true },
|
||||||
-- indent = { enabled = true },
|
indent = { enabled = true },
|
||||||
-- input = { enabled = true },
|
-- input = { enabled = true },
|
||||||
-- picker = { enabled = true },
|
-- picker = { enabled = true },
|
||||||
-- notifier = { enabled = true },
|
-- notifier = { enabled = true },
|
||||||
-- quickfile = { enabled = true },
|
-- quickfile = { enabled = true },
|
||||||
-- scope = { enabled = true },
|
-- scope = { enabled = true },
|
||||||
-- scroll = { enabled = true },
|
-- scroll = { enabled = true },
|
||||||
-- statuscolumn = { enabled = true },
|
statuscolumn = { enabled = true },
|
||||||
-- words = { enabled = true },
|
-- words = { enabled = true },
|
||||||
image = { enabled = true },
|
image = { enabled = true },
|
||||||
},
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>ft",
|
||||||
|
function()
|
||||||
|
require("snacks").explorer()
|
||||||
|
end
|
||||||
|
,
|
||||||
|
desc = "Toggle File Explorer"
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
return {
|
return {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
|
cmd = "Telescope",
|
||||||
opts = {
|
opts = {
|
||||||
defaults = {
|
defaults = {
|
||||||
prompt_prefix = require("config.icons").telescope,
|
prompt_prefix = require("config.icons").telescope,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue