Compare commits
18
Commits
4150a25ea0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55a727d496 | ||
|
|
095acafb62 | ||
|
|
66c9ba4297 | ||
|
|
f153715208 | ||
|
|
95bec67c2d | ||
|
|
06069df8e5 | ||
|
|
42aa8f5590 | ||
|
|
62041e0897 | ||
|
|
11025156b6 | ||
|
|
a500160bbd | ||
|
|
f653915e23 | ||
|
|
7ff7f47104 | ||
|
|
104145392c | ||
|
|
757f612ce2 | ||
|
|
f13a70f1fc | ||
|
|
de3d0d09d9 | ||
|
|
e818e59873 | ||
|
|
8ea48a02d7 |
@@ -1,4 +1,27 @@
|
|||||||
# 💤 LazyVim
|
# vim
|
||||||
|
|
||||||
A starter template for [LazyVim](https://github.com/LazyVim/LazyVim).
|
## install
|
||||||
Refer to the [documentation](https://lazyvim.github.io/installation) to get started.
|
|
||||||
|
```bash
|
||||||
|
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.appimage
|
||||||
|
|
||||||
|
mv nvim.appimage /usr/local/bin/nvim
|
||||||
|
sudo apt install fzf
|
||||||
|
sudo apt install fd-find
|
||||||
|
sudo apt install luarocks ripgrep
|
||||||
|
```
|
||||||
|
|
||||||
|
## install lazygit
|
||||||
|
|
||||||
|
```bash
|
||||||
|
arch
|
||||||
|
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
|
||||||
|
# for x86
|
||||||
|
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
|
||||||
|
# for aarch64
|
||||||
|
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_arm64.tar.gz"
|
||||||
|
tar xf lazygit.tar.gz lazygit
|
||||||
|
sudo install lazygit /usr/local/bin
|
||||||
|
```
|
||||||
|
|
||||||
|
## setup
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||||
|
|
||||||
|
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
|
||||||
|
vim.g.user = "veypi"
|
||||||
|
vim.g.email = "i@veypi.com"
|
||||||
|
vim.g.license = "MIT"
|
||||||
|
vim.g.templates_directory = "~/.config/nvim/templates"
|
||||||
|
|
||||||
|
vim.opt.wrap = true
|
||||||
|
vim.opt.linebreak = true
|
||||||
|
|||||||
+48
-43
@@ -1,45 +1,50 @@
|
|||||||
{
|
{
|
||||||
"LazyVim": { "branch": "main", "commit": "13a4a84e3485a36e64055365665a45dc82b6bf71" },
|
"LazyVim": { "branch": "main", "commit": "83d90f339defdb109a6ede333865a66ffc7ef6aa" },
|
||||||
"bufferline.nvim": { "branch": "main", "commit": "0b2fd861eee7595015b6561dade52fb060be10c4" },
|
"SchemaStore.nvim": { "branch": "main", "commit": "d09eb13366fe95deeecf3deba7a4639f0c82fcdc" },
|
||||||
"catppuccin": { "branch": "main", "commit": "7be452ee067978cdc8b2c5f3411f0c71ffa612b9" },
|
"auto-save.nvim": { "branch": "main", "commit": "61892d67acd5b7c845f5da4d780b26fcd7f63e34" },
|
||||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
"blink.compat": { "branch": "main", "commit": "2ed6d9a28b07fa6f3bface818470605f8896408c" },
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "40d4e98fcc3e6f485f0e8924c63734bc7e305967" },
|
"catppuccin": { "branch": "main", "commit": "426dbebe06b5c69fd846ceb17b42e12f890aedf1" },
|
||||||
"dashboard-nvim": { "branch": "master", "commit": "d2c5a4d1341f5ca1ed2ecb4ecfcff2bc8ea18b14" },
|
"claudecode.nvim": { "branch": "main", "commit": "432121f0f5b9bda041030d1e9e83b7ba3a93dd8f" },
|
||||||
"dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
|
"codeium.nvim": { "branch": "main", "commit": "821b570b526dbb05b57aa4ded578b709a704a38a" },
|
||||||
"flash.nvim": { "branch": "main", "commit": "34c7be146a91fec3555c33fe89c7d643f6ef5cf1" },
|
"codex.nvim": { "branch": "main", "commit": "4317788afc091d5e913109c55d5a04f32be4e14a" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
|
"conform.nvim": { "branch": "master", "commit": "dca1a190aa85f9065979ef35802fb77131911106" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "863903631e676b33e8be2acb17512fdc1b80b4fb" },
|
"flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" },
|
||||||
"grug-far.nvim": { "branch": "main", "commit": "f47594f05d10b0bedfc0ed78e488e7fd714d57be" },
|
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "e7a4442e055ec953311e77791546238d1eaae507" },
|
"grug-far.nvim": { "branch": "main", "commit": "21604255d0e8f9968322f61f2b6c09e5efe1285a" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
|
"inc-rename.nvim": { "branch": "main", "commit": "0074b551a17338ccdcd299bd86687cc651bcb33d" },
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" },
|
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
|
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
|
||||||
"luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },
|
"lualine.nvim": { "branch": "master", "commit": "a905eeebc4e63fdc48b5135d3bf8aea5618fb21c" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" },
|
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "0a3b42c3e503df87aef6d6513e13148381495c3a" },
|
||||||
"mini.ai": { "branch": "main", "commit": "9b9b7cfa38b4871c3e44cfe89cf6d53fd40684d9" },
|
"mason.nvim": { "branch": "main", "commit": "12ddd182d9efbdc848b540f16484a583d52da0fb" },
|
||||||
"mini.icons": { "branch": "main", "commit": "a2742459f0ee32806c2438ca06b4d8b331f3f4d4" },
|
"mini.ai": { "branch": "main", "commit": "43eb2074843950a3a25aae56a5f41362ec043bfa" },
|
||||||
"mini.pairs": { "branch": "main", "commit": "7e834c5937d95364cc1740e20d673afe2d034cdb" },
|
"mini.diff": { "branch": "main", "commit": "ab11575a6c147ecfba894d676d0c93e855021d34" },
|
||||||
"neo-tree.nvim": { "branch": "main", "commit": "a77af2e764c5ed4038d27d1c463fa49cd4794e07" },
|
"mini.hipatterns": { "branch": "main", "commit": "9eff319bbe66adfaf781a0d0e174baa08ba94909" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "df448c649ef6bc5a6a633a44f2ad0ed8d4442499" },
|
"mini.icons": { "branch": "main", "commit": "bac6317300e205335df425296570d84322730067" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
|
"mini.pairs": { "branch": "main", "commit": "42387c7fe68fc0b6e95eaf37f1bb76e7bffaa0d9" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
|
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
|
||||||
"nvim-lint": { "branch": "master", "commit": "f707b3ae50417067fa63fdfe179b0bff6b380da1" },
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "b1de227da4ca6baf6ba865bec75917e4b4053844" },
|
"nvim-cmp": { "branch": "main", "commit": "da88697d7f45d16852c6b2769dc52387d1ddc45f" },
|
||||||
"nvim-notify": { "branch": "master", "commit": "fbef5d32be8466dd76544a257d3f3dce20082a07" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||||
"nvim-snippets": { "branch": "main", "commit": "56b4052f71220144689caaa2e5b66222ba5661eb" },
|
"nvim-lint": { "branch": "master", "commit": "eab58b48eb11d7745c11c505e0f3057165902461" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "245ffff7ac1f4aab19cb31d5ca3251d003a67e20" },
|
"nvim-lspconfig": { "branch": "master", "commit": "e146efacbafed3789ac568abcc5a981c5decaa58" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "b91c98afa6c42819aea6cbc1ba38272f5456a5cf" },
|
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
|
"nvim-treesitter-textobjects": { "branch": "main", "commit": "851e865342e5a4cb1ae23d31caf6e991e1c99f1e" },
|
||||||
"persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
"persistence.nvim": { "branch": "main", "commit": "b20b2a7887bd39c1a356980b45e03250f3dce49c" },
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
|
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "df534c3042572fb958586facd02841e10186707c" },
|
"render-markdown.nvim": { "branch": "main", "commit": "d67113f11384c0dad96fced2f7b91f1fc811e97f" },
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
|
"snacks.nvim": { "branch": "main", "commit": "ad9ede6a9cddf16cedbd31b8932d6dcdee9b716e" },
|
||||||
"tokyonight.nvim": { "branch": "main", "commit": "2c85fad417170d4572ead7bf9fdd706057bd73d7" },
|
"telescope.nvim": { "branch": "master", "commit": "3ab376cfae65b921dda454df5967f8df673effc6" },
|
||||||
"trouble.nvim": { "branch": "main", "commit": "254145ffd528b98eb20be894338e2d5c93fa02c2" },
|
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
||||||
"ts-comments.nvim": { "branch": "main", "commit": "98d7d4dec0af1312d38e288f800bbf6ff562b6ab" },
|
"tokyonight.nvim": { "branch": "main", "commit": "cdc07ac78467a233fd62c493de29a17e0cf2b2b6" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" }
|
"transparent.nvim": { "branch": "main", "commit": "8ac59883de84e9cd1850ea25cf087031c5ba7d54" },
|
||||||
|
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
|
||||||
|
"ts-comments.nvim": { "branch": "main", "commit": "123a9fb12e7229342f807ec9e6de478b1102b041" },
|
||||||
|
"vim-template": { "branch": "master", "commit": "df6d29a8549a13db026818c27a6b060978db7a3d" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" },
|
||||||
|
"yanky.nvim": { "branch": "main", "commit": "784188e0a7363e762e53140f39124d786aec0832" }
|
||||||
}
|
}
|
||||||
|
|||||||
+13
-3
@@ -1,9 +1,19 @@
|
|||||||
{
|
{
|
||||||
"extras": [
|
"extras": [
|
||||||
|
"lazyvim.plugins.extras.coding.yanky",
|
||||||
|
"lazyvim.plugins.extras.editor.inc-rename",
|
||||||
|
"lazyvim.plugins.extras.editor.mini-diff",
|
||||||
|
"lazyvim.plugins.extras.lang.docker",
|
||||||
|
"lazyvim.plugins.extras.lang.go",
|
||||||
|
"lazyvim.plugins.extras.lang.json",
|
||||||
|
"lazyvim.plugins.extras.lang.markdown",
|
||||||
|
"lazyvim.plugins.extras.lang.tailwind",
|
||||||
|
"lazyvim.plugins.extras.lang.typescript",
|
||||||
|
"lazyvim.plugins.extras.util.mini-hipatterns"
|
||||||
],
|
],
|
||||||
|
"install_version": 8,
|
||||||
"news": {
|
"news": {
|
||||||
"NEWS.md": "6520"
|
"NEWS.md": "11866"
|
||||||
},
|
},
|
||||||
"version": 6
|
"version": 8
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
-- Autocmds are automatically loaded on the VeryLazy event
|
-- Autocmds are automatically loaded on the VeryLazy event
|
||||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||||
|
--
|
||||||
-- Add any additional autocmds here
|
-- Add any additional autocmds here
|
||||||
|
-- with `vim.api.nvim_create_autocmd`
|
||||||
|
--
|
||||||
|
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
|
||||||
|
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
|
||||||
|
|||||||
@@ -1,3 +1,51 @@
|
|||||||
-- Keymaps are automatically loaded on the VeryLazy event
|
-- Keymaps are automatically loaded on the VeryLazy event
|
||||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
-- Add any additional keymaps here
|
-- Add any additional keymaps here
|
||||||
|
|
||||||
|
local map = LazyVim.safe_keymap_set
|
||||||
|
|
||||||
|
map("n", "q", "<cmd>bd<cr>", { desc = "Quit one" })
|
||||||
|
map("n", "Q", "<cmd>qa<cr>", { desc = "Quit All" })
|
||||||
|
map("n", "<F2>", ":Neotree toggle<cr>", { desc = "toggle neotree" })
|
||||||
|
|
||||||
|
-- 自定义复制:文件名 + 行号范围 + 内容
|
||||||
|
-- 用法:yp(当前行),2yp(当前行及以下共2行)
|
||||||
|
_G.copy_lines_with_location = function()
|
||||||
|
local ok, err = pcall(function()
|
||||||
|
local count = vim.v.count1
|
||||||
|
local bufnr = vim.api.nvim_get_current_buf()
|
||||||
|
local filepath = vim.api.nvim_buf_get_name(bufnr)
|
||||||
|
local relative_path = vim.fn.fnamemodify(filepath, ":.")
|
||||||
|
if relative_path == "" then
|
||||||
|
relative_path = "[No Name]"
|
||||||
|
end
|
||||||
|
|
||||||
|
local start_line = vim.api.nvim_win_get_cursor(0)[1]
|
||||||
|
local end_line = start_line + count - 1
|
||||||
|
local lines = vim.api.nvim_buf_get_lines(bufnr, start_line - 1, end_line, false)
|
||||||
|
|
||||||
|
local range_str
|
||||||
|
if count == 1 then
|
||||||
|
range_str = tostring(start_line)
|
||||||
|
else
|
||||||
|
range_str = string.format("%d-%d", start_line, end_line)
|
||||||
|
end
|
||||||
|
|
||||||
|
local parts = { string.format("%s:%s:", relative_path, range_str) }
|
||||||
|
for i, line in ipairs(lines) do
|
||||||
|
table.insert(parts, string.format(" %d: %s", start_line + i - 1, line))
|
||||||
|
end
|
||||||
|
local result = table.concat(parts, "\n")
|
||||||
|
|
||||||
|
vim.fn.setreg("+", result)
|
||||||
|
vim.fn.setreg('"', result)
|
||||||
|
vim.notify("Copied " .. #lines .. " line(s)", vim.log.levels.INFO)
|
||||||
|
end)
|
||||||
|
if not ok then
|
||||||
|
vim.notify("copy_lines_with_location error: " .. tostring(err), vim.log.levels.ERROR)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
local copy_lines_with_location = _G.copy_lines_with_location
|
||||||
|
|
||||||
|
map("n", "<leader>yy", copy_lines_with_location, { desc = "Copy line(s) with location" })
|
||||||
|
|
||||||
|
|||||||
@@ -2,3 +2,5 @@
|
|||||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
-- Add any additional options here
|
-- Add any additional options here
|
||||||
--
|
--
|
||||||
|
|
||||||
|
vim.g.root_spec = { { ".git", "lua" }, "lsp", "cwd" }
|
||||||
|
|||||||
@@ -0,0 +1,61 @@
|
|||||||
|
#! /usr/bin/env lua
|
||||||
|
--
|
||||||
|
-- ai.lua
|
||||||
|
-- Copyright (C) 2025 veypi <i@veypi.com>
|
||||||
|
--
|
||||||
|
-- Distributed under terms of the MIT license.
|
||||||
|
--
|
||||||
|
|
||||||
|
return {
|
||||||
|
-- { "github/copilot.vim" },
|
||||||
|
{
|
||||||
|
"kkrampis/codex.nvim",
|
||||||
|
lazy = true,
|
||||||
|
cmd = { "Codex", "CodexToggle" }, -- Optional: Load only on command execution
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>xc", -- Change this to your preferred keybinding
|
||||||
|
function()
|
||||||
|
require("codex").toggle()
|
||||||
|
end,
|
||||||
|
desc = "Toggle Codex popup or side-panel",
|
||||||
|
mode = { "n", "t" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
cmd = { "bash", "-c", "http_proxy=http://127.0.0.1:7897 https_proxy=http://127.0.0.1:7897 codex" },
|
||||||
|
keymaps = {
|
||||||
|
toggle = nil, -- Keybind to toggle Codex window (Disabled by default, watch out for conflicts)
|
||||||
|
quit = "<C-q>", -- Keybind to close the Codex window (default: Ctrl + q)
|
||||||
|
}, -- Disable internal default keymap (<leader>cc -> :CodexToggle)
|
||||||
|
border = "rounded", -- Options: 'single', 'double', or 'rounded'
|
||||||
|
width = 0.8, -- Width of the floating window (0.0 to 1.0)
|
||||||
|
height = 0.8, -- Height of the floating window (0.0 to 1.0)
|
||||||
|
model = nil, -- Optional: pass a string to use a specific model (e.g., 'o3-mini')
|
||||||
|
panel = false, -- Open Codex in a side-panel (vertical split) instead of floating window
|
||||||
|
use_buffer = false, -- Capture Codex stdout into a normal buffer instead of a terminal buffer
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"coder/claudecode.nvim",
|
||||||
|
opts = {},
|
||||||
|
keys = {
|
||||||
|
{ "<leader>a", "", desc = "+ai", mode = { "n", "v" } },
|
||||||
|
{ "<leader>ac", "<cmd>ClaudeCode<cr>", desc = "Toggle Claude" },
|
||||||
|
{ "<leader>af", "<cmd>ClaudeCodeFocus<cr>", desc = "Focus Claude" },
|
||||||
|
{ "<leader>ar", "<cmd>ClaudeCode --resume<cr>", desc = "Resume Claude" },
|
||||||
|
{ "<leader>aC", "<cmd>ClaudeCode --continue<cr>", desc = "Continue Claude" },
|
||||||
|
{ "<leader>ab", "<cmd>ClaudeCodeAdd %<cr>", desc = "Add current buffer" },
|
||||||
|
{ "<leader>as", "<cmd>ClaudeCodeSend<cr>", mode = "v", desc = "Send to Claude" },
|
||||||
|
{
|
||||||
|
"<leader>as",
|
||||||
|
"<cmd>ClaudeCodeTreeAdd<cr>",
|
||||||
|
desc = "Add file",
|
||||||
|
ft = { "NvimTree", "neo-tree", "oil" },
|
||||||
|
},
|
||||||
|
-- Diff management
|
||||||
|
{ "<leader>aa", "<cmd>ClaudeCodeDiffAccept<cr>", desc = "Accept diff" },
|
||||||
|
{ "<leader>ad", "<cmd>ClaudeCodeDiffDeny<cr>", desc = "Deny diff" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"okuuva/auto-save.nvim",
|
||||||
|
version = '^1.0.0', -- see https://devhints.io/semver, alternatively use '*' to use the latest tagged release
|
||||||
|
cmd = "ASToggle", -- optional for lazy loading on command
|
||||||
|
event = { "InsertLeave", "TextChanged" }, -- optional for lazy loading on trigger events
|
||||||
|
opts = {
|
||||||
|
enabled = true, -- start auto-save when the plugin is loaded (i.e. when your package manager loads it)
|
||||||
|
trigger_events = { -- See :h events
|
||||||
|
immediate_save = { "BufLeave", "FocusLost" }, -- vim events that trigger an immediate save
|
||||||
|
defer_save = { "InsertLeave", "TextChanged" }, -- vim events that trigger a deferred save (saves after `debounce_delay`)
|
||||||
|
cancel_deferred_save = { "InsertEnter" }, -- vim events that cancel a pending deferred save
|
||||||
|
},
|
||||||
|
-- function that takes the buffer handle and determines whether to save the current buffer or not
|
||||||
|
-- return true: if buffer is ok to be saved
|
||||||
|
-- return false: if it's not ok to be saved
|
||||||
|
-- if set to `nil` then no specific condition is applied
|
||||||
|
condition = nil,
|
||||||
|
write_all_buffers = false, -- write all buffers when the current one meets `condition`
|
||||||
|
noautocmd = false, -- do not execute autocmds when saving
|
||||||
|
lockmarks = false, -- lock marks when saving, see `:h lockmarks` for more details
|
||||||
|
debounce_delay = 10000, -- delay after which a pending save is executed
|
||||||
|
-- log debug messages to 'auto-save.log' file in neovim cache directory, set to `true` to enable
|
||||||
|
debug = false,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
#! /usr/bin/env lua
|
||||||
|
--
|
||||||
|
-- diff.lua
|
||||||
|
-- Copyright (C) 2024 veypi <i@veypi.com>
|
||||||
|
--
|
||||||
|
-- Distributed under terms of the GPL license.
|
||||||
|
--
|
||||||
|
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-mini/mini.diff",
|
||||||
|
event = "VeryLazy",
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>go",
|
||||||
|
function()
|
||||||
|
require("mini.diff").toggle_overlay(0)
|
||||||
|
end,
|
||||||
|
desc = "Toggle mini.diff overlay",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
view = {
|
||||||
|
style = "sign",
|
||||||
|
signs = {
|
||||||
|
add = "▎",
|
||||||
|
change = "▎",
|
||||||
|
delete = "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -7,7 +7,7 @@ if true then return {} end
|
|||||||
-- In your plugin files, you can:
|
-- In your plugin files, you can:
|
||||||
-- * add extra plugins
|
-- * add extra plugins
|
||||||
-- * disable/enabled LazyVim plugins
|
-- * disable/enabled LazyVim plugins
|
||||||
-- * override the configuration of LazyVim plugins
|
-- * override the requieconfiguration of LazyVim plugins
|
||||||
return {
|
return {
|
||||||
-- add gruvbox
|
-- add gruvbox
|
||||||
{ "ellisonleao/gruvbox.nvim" },
|
{ "ellisonleao/gruvbox.nvim" },
|
||||||
@@ -157,7 +157,11 @@ return {
|
|||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
table.insert(opts.sections.lualine_x, "😄")
|
table.insert(opts.sections.lualine_x, {
|
||||||
|
function()
|
||||||
|
return "😄"
|
||||||
|
end,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,93 @@
|
|||||||
|
require("lspconfig").ts_ls.setup({
|
||||||
|
cmd = { "typescript-language-server", "--stdio" },
|
||||||
|
filetype = { "javascript", "html" },
|
||||||
|
})
|
||||||
|
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = { ensure_installed = { "css", "scss", "go", "gomod", "gowork", "gosum", "json5" } },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mason-org/mason.nvim",
|
||||||
|
opts = {
|
||||||
|
ensure_installed = {
|
||||||
|
"bash-language-server",
|
||||||
|
"css-lsp",
|
||||||
|
"html-lsp",
|
||||||
|
"gopls",
|
||||||
|
"helm-ls",
|
||||||
|
"json-lsp",
|
||||||
|
"goimports",
|
||||||
|
"gofumpt",
|
||||||
|
"gomodifytags",
|
||||||
|
"impl",
|
||||||
|
"delve",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = {
|
||||||
|
servers = {
|
||||||
|
tsserver = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
ts_ls = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
gopls = {
|
||||||
|
settings = {
|
||||||
|
gopls = {
|
||||||
|
hints = {
|
||||||
|
parameterNames = false,
|
||||||
|
assignVariableTypes = false,
|
||||||
|
},
|
||||||
|
usePlaceholders = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
vtsls = {
|
||||||
|
enabled = false,
|
||||||
|
filetypes = {
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
"javascript.jsx",
|
||||||
|
"typescript",
|
||||||
|
"typescriptreact",
|
||||||
|
"typescript.tsx",
|
||||||
|
},
|
||||||
|
settings = {
|
||||||
|
complete_function_calls = true,
|
||||||
|
vtsls = {
|
||||||
|
enableMoveToFileCodeAction = true,
|
||||||
|
autoUseWorkspaceTsdk = true,
|
||||||
|
experimental = {
|
||||||
|
completion = {
|
||||||
|
enableServerSideFuzzyMatch = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
typescript = {
|
||||||
|
updateImportsOnFileMove = { enabled = "always" },
|
||||||
|
suggest = {
|
||||||
|
completeFunctionCalls = true,
|
||||||
|
},
|
||||||
|
inlayHints = {
|
||||||
|
enumMemberValues = { enabled = true },
|
||||||
|
functionLikeReturnTypes = { enabled = false },
|
||||||
|
parameterNames = { enabled = false },
|
||||||
|
parameterTypes = { enabled = false },
|
||||||
|
propertyDeclarationTypes = { enabled = true },
|
||||||
|
variableTypes = { enabled = false },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,174 @@
|
|||||||
|
local M = {}
|
||||||
|
M.theme = function()
|
||||||
|
local colors = {
|
||||||
|
darkgray = nil,
|
||||||
|
gray = "#727169",
|
||||||
|
innerbg = nil,
|
||||||
|
outerbg = nil,
|
||||||
|
normal = "#7e9cd8",
|
||||||
|
insert = "#98bb6c",
|
||||||
|
visual = "#ffa066",
|
||||||
|
replace = "#e46876",
|
||||||
|
command = "#e6c384",
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
inactive = {
|
||||||
|
a = { fg = colors.gray, bg = colors.outerbg, gui = "bold" },
|
||||||
|
b = { fg = colors.gray, bg = colors.outerbg },
|
||||||
|
c = { fg = colors.gray, bg = colors.innerbg },
|
||||||
|
},
|
||||||
|
visual = {
|
||||||
|
a = { fg = colors.darkgray, bg = colors.visual, gui = "bold" },
|
||||||
|
b = { fg = colors.gray, bg = colors.outerbg },
|
||||||
|
c = { fg = colors.gray, bg = colors.innerbg },
|
||||||
|
},
|
||||||
|
replace = {
|
||||||
|
a = { fg = colors.darkgray, bg = colors.replace, gui = "bold" },
|
||||||
|
b = { fg = colors.gray, bg = colors.outerbg },
|
||||||
|
c = { fg = colors.gray, bg = colors.innerbg },
|
||||||
|
},
|
||||||
|
normal = {
|
||||||
|
a = { fg = colors.darkgray, bg = colors.normal, gui = "bold" },
|
||||||
|
b = { fg = colors.gray, bg = colors.outerbg },
|
||||||
|
c = { fg = colors.gray, bg = colors.innerbg },
|
||||||
|
},
|
||||||
|
insert = {
|
||||||
|
a = { fg = colors.darkgray, bg = colors.insert, gui = "bold" },
|
||||||
|
b = { fg = colors.gray, bg = colors.outerbg },
|
||||||
|
c = { fg = colors.gray, bg = colors.innerbg },
|
||||||
|
},
|
||||||
|
command = {
|
||||||
|
a = { fg = colors.darkgray, bg = colors.command, gui = "bold" },
|
||||||
|
b = { fg = colors.gray, bg = colors.outerbg },
|
||||||
|
c = { fg = colors.gray, bg = colors.innerbg },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-lualine/lualine.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
init = function()
|
||||||
|
vim.g.lualine_laststatus = vim.o.laststatus
|
||||||
|
if vim.fn.argc(-1) > 0 then
|
||||||
|
-- set an empty statusline till lualine loads
|
||||||
|
vim.o.statusline = " "
|
||||||
|
else
|
||||||
|
-- hide the statusline on the starter page
|
||||||
|
vim.o.laststatus = 0
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
opts = function()
|
||||||
|
-- PERF: we don't need this lualine require madness 🤷
|
||||||
|
local lualine_require = require("lualine_require")
|
||||||
|
lualine_require.require = require
|
||||||
|
|
||||||
|
local icons = LazyVim.config.icons
|
||||||
|
|
||||||
|
vim.o.laststatus = vim.g.lualine_laststatus
|
||||||
|
|
||||||
|
local opts = {
|
||||||
|
options = {
|
||||||
|
theme = M.theme(),
|
||||||
|
globalstatus = vim.o.laststatus == 3,
|
||||||
|
disabled_filetypes = { statusline = { "dashboard", "alpha", "ministarter" } },
|
||||||
|
},
|
||||||
|
sections = {
|
||||||
|
lualine_a = { "mode" },
|
||||||
|
lualine_b = { "branch" },
|
||||||
|
|
||||||
|
lualine_c = {
|
||||||
|
LazyVim.lualine.root_dir(),
|
||||||
|
{
|
||||||
|
"diagnostics",
|
||||||
|
symbols = {
|
||||||
|
error = icons.diagnostics.Error,
|
||||||
|
warn = icons.diagnostics.Warn,
|
||||||
|
info = icons.diagnostics.Info,
|
||||||
|
hint = icons.diagnostics.Hint,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
|
||||||
|
{ LazyVim.lualine.pretty_path() },
|
||||||
|
},
|
||||||
|
lualine_x = {
|
||||||
|
-- stylua: ignore
|
||||||
|
{
|
||||||
|
function() return require("noice").api.status.command.get() end,
|
||||||
|
cond = function() return package.loaded["noice"] and require("noice").api.status.command.has() end,
|
||||||
|
color = function() return { fg = Snacks.util.color("Statement") } end,
|
||||||
|
},
|
||||||
|
-- stylua: ignore
|
||||||
|
{
|
||||||
|
function() return require("noice").api.status.mode.get() end,
|
||||||
|
cond = function() return package.loaded["noice"] and require("noice").api.status.mode.has() end,
|
||||||
|
color = function() return { fg = Snacks.util.color("Constant") } end,
|
||||||
|
},
|
||||||
|
-- stylua: ignore
|
||||||
|
{
|
||||||
|
function() return " " .. require("dap").status() end,
|
||||||
|
cond = function() return package.loaded["dap"] and require("dap").status() ~= "" end,
|
||||||
|
color = function() return { fg = Snacks.util.color("Debug") } end,
|
||||||
|
},
|
||||||
|
-- stylua: ignore
|
||||||
|
{
|
||||||
|
require("lazy.status").updates,
|
||||||
|
cond = require("lazy.status").has_updates,
|
||||||
|
color = function() return { fg = Snacks.util.color("Special") } end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"diff",
|
||||||
|
symbols = {
|
||||||
|
added = icons.git.added,
|
||||||
|
modified = icons.git.modified,
|
||||||
|
removed = icons.git.removed,
|
||||||
|
},
|
||||||
|
source = function()
|
||||||
|
local gitsigns = vim.b.gitsigns_status_dict
|
||||||
|
if gitsigns then
|
||||||
|
return {
|
||||||
|
added = gitsigns.added,
|
||||||
|
modified = gitsigns.changed,
|
||||||
|
removed = gitsigns.removed,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
lualine_y = {
|
||||||
|
{ "progress", separator = " ", padding = { left = 1, right = 0 } },
|
||||||
|
{ "location", padding = { left = 0, right = 1 } },
|
||||||
|
},
|
||||||
|
lualine_z = {
|
||||||
|
function()
|
||||||
|
return " " .. os.date("%R")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
extensions = { "neo-tree", "lazy" },
|
||||||
|
}
|
||||||
|
|
||||||
|
-- do not add trouble symbols if aerial is enabled
|
||||||
|
-- And allow it to be overriden for some buffer types (see autocmds)
|
||||||
|
if vim.g.trouble_lualine and LazyVim.has("trouble.nvim") then
|
||||||
|
local trouble = require("trouble")
|
||||||
|
local symbols = trouble.statusline({
|
||||||
|
mode = "symbols",
|
||||||
|
groups = {},
|
||||||
|
title = false,
|
||||||
|
filter = { range = true },
|
||||||
|
format = "{kind_icon}{symbol.name:Normal}",
|
||||||
|
hl_group = "lualine_c_normal",
|
||||||
|
})
|
||||||
|
table.insert(opts.sections.lualine_c, {
|
||||||
|
symbols and symbols.get,
|
||||||
|
cond = function()
|
||||||
|
return vim.b.trouble_lualine ~= false and symbols.has()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
return opts
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
dependencies = { "hrsh7th/cmp-emoji" },
|
||||||
|
---@param opts cmp.ConfigSchema
|
||||||
|
opts = function(_, opts)
|
||||||
|
table.insert(opts.sources, { name = "emoji" })
|
||||||
|
local has_words_before = function()
|
||||||
|
unpack = unpack or table.unpack
|
||||||
|
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
||||||
|
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local cmp = require("cmp")
|
||||||
|
|
||||||
|
opts.mapping = vim.tbl_extend("force", opts.mapping, {
|
||||||
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
-- You could replace select_next_item() with confirm({ select = true }) to get VS Code autocompletion behavior
|
||||||
|
cmp.select_next_item()
|
||||||
|
elseif vim.snippet.active({ direction = 1 }) then
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.snippet.jump(1)
|
||||||
|
end)
|
||||||
|
elseif has_words_before() then
|
||||||
|
cmp.complete()
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, { "i", "s" }),
|
||||||
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_prev_item()
|
||||||
|
elseif vim.snippet.active({ direction = -1 }) then
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.snippet.jump(-1)
|
||||||
|
end)
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
|
end, { "i", "s" }),
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
#! /usr/bin/env lua
|
||||||
|
--
|
||||||
|
-- telescope.lua
|
||||||
|
-- Copyright (C) 2024 veypi <i@veypi.com>
|
||||||
|
--
|
||||||
|
-- Distributed under terms of the GPL license.
|
||||||
|
--
|
||||||
|
|
||||||
|
|
||||||
|
return {
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
opts = function()
|
||||||
|
local actions = require("telescope.actions")
|
||||||
|
|
||||||
|
local open_with_trouble = function(...)
|
||||||
|
return require("trouble.sources.telescope").open(...)
|
||||||
|
end
|
||||||
|
local find_files_no_ignore = function()
|
||||||
|
local action_state = require("telescope.actions.state")
|
||||||
|
local line = action_state.get_current_line()
|
||||||
|
LazyVim.pick("find_files", { no_ignore = true, default_text = line })()
|
||||||
|
end
|
||||||
|
local find_files_with_hidden = function()
|
||||||
|
local action_state = require("telescope.actions.state")
|
||||||
|
local line = action_state.get_current_line()
|
||||||
|
LazyVim.pick("find_files", { hidden = true, default_text = line })()
|
||||||
|
end
|
||||||
|
|
||||||
|
local function find_command()
|
||||||
|
if 1 == vim.fn.executable("rg") then
|
||||||
|
return { "rg", "--files", "--color", "never", "-g", "!.git" }
|
||||||
|
elseif 1 == vim.fn.executable("fd") then
|
||||||
|
return { "fd", "--type", "f", "--color", "never", "-E", ".git" }
|
||||||
|
elseif 1 == vim.fn.executable("fdfind") then
|
||||||
|
return { "fdfind", "--type", "f", "--color", "never", "-E", ".git" }
|
||||||
|
elseif 1 == vim.fn.executable("find") and vim.fn.has("win32") == 0 then
|
||||||
|
return { "find", ".", "-type", "f" }
|
||||||
|
elseif 1 == vim.fn.executable("where") then
|
||||||
|
return { "where", "/r", ".", "*" }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
defaults = {
|
||||||
|
file_ignore_patterns = { "public" },
|
||||||
|
prompt_prefix = " ",
|
||||||
|
selection_caret = " ",
|
||||||
|
-- open files in the first window that is an actual file.
|
||||||
|
-- use the current window if no other window is available.
|
||||||
|
get_selection_window = function()
|
||||||
|
local wins = vim.api.nvim_list_wins()
|
||||||
|
table.insert(wins, 1, vim.api.nvim_get_current_win())
|
||||||
|
for _, win in ipairs(wins) do
|
||||||
|
local buf = vim.api.nvim_win_get_buf(win)
|
||||||
|
if vim.bo[buf].buftype == "" then
|
||||||
|
return win
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return 0
|
||||||
|
end,
|
||||||
|
mappings = {
|
||||||
|
i = {
|
||||||
|
["<c-t>"] = open_with_trouble,
|
||||||
|
["<a-t>"] = open_with_trouble,
|
||||||
|
["<a-i>"] = find_files_no_ignore,
|
||||||
|
["<a-h>"] = find_files_with_hidden,
|
||||||
|
["<C-Down>"] = actions.cycle_history_next,
|
||||||
|
["<C-Up>"] = actions.cycle_history_prev,
|
||||||
|
["<C-f>"] = actions.preview_scrolling_down,
|
||||||
|
["<C-b>"] = actions.preview_scrolling_up,
|
||||||
|
},
|
||||||
|
n = {
|
||||||
|
["q"] = actions.close,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pickers = {
|
||||||
|
find_files = {
|
||||||
|
find_command = find_command,
|
||||||
|
hidden = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
return {
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
opts = {
|
||||||
|
explorer = {
|
||||||
|
-- 覆盖默认按键映射
|
||||||
|
actions = {
|
||||||
|
-- 原 E (expand_all) -> 绑定到 e
|
||||||
|
["e"] = "expand_all",
|
||||||
|
-- 原 e (explore) -> 绑定到 E
|
||||||
|
["E"] = "explore",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
terminal = {
|
||||||
|
win = {
|
||||||
|
-- 可选: "float" (浮动), "bottom" (底部), "top" (顶部), "left" (左侧), "right" (右侧)
|
||||||
|
-- position = "right",
|
||||||
|
|
||||||
|
-- 浮动窗口专用配置(当 position = "float" 时生效)
|
||||||
|
-- border = "rounded", -- 边框样式: "single", "double", "rounded", "shadow"
|
||||||
|
-- width = 0.3,
|
||||||
|
-- height = 0.8, -- 高度占屏幕比例
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"folke/tokyonight.nvim",
|
||||||
|
opts = {
|
||||||
|
transparent = true,
|
||||||
|
styles = {
|
||||||
|
sidebars = "transparent",
|
||||||
|
floats = "transparent",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"aperezdc/vim-template",
|
||||||
|
config = function() end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"norcalli/nvim-colorizer.lua",
|
||||||
|
config = function()
|
||||||
|
require("colorizer").setup({ "css", "scss", "html", "javascript", "vue", "ts", "lua" }, {
|
||||||
|
RGB = true, -- #RGB hex codes
|
||||||
|
RRGGBB = true, -- #RRGGBB hex codes
|
||||||
|
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||||||
|
rgb_fn = true, -- CSS rgb() and rgba() functions
|
||||||
|
hsl_fn = true, -- CSS hsl() and hsla() functions
|
||||||
|
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
||||||
|
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
return {
|
||||||
|
"xiyaowong/transparent.nvim",
|
||||||
|
groups = {
|
||||||
|
"Normal",
|
||||||
|
"NormalNC",
|
||||||
|
"Comment",
|
||||||
|
"Constant",
|
||||||
|
"Special",
|
||||||
|
"Identifier",
|
||||||
|
"Statement",
|
||||||
|
"PreProc",
|
||||||
|
"Type",
|
||||||
|
"Underlined",
|
||||||
|
"Todo",
|
||||||
|
"String",
|
||||||
|
"Function",
|
||||||
|
"Conditional",
|
||||||
|
"Repeat",
|
||||||
|
"Operator",
|
||||||
|
"Structure",
|
||||||
|
"LineNr",
|
||||||
|
"NonText",
|
||||||
|
"SignColumn",
|
||||||
|
"CursorLine",
|
||||||
|
"CursorLineNr",
|
||||||
|
"StatusLine",
|
||||||
|
"StatusLineNC",
|
||||||
|
"EndOfBuffer",
|
||||||
|
},
|
||||||
|
-- table: additional groups that should be cleared
|
||||||
|
extra_groups = {},
|
||||||
|
-- table: groups you don't want to clear
|
||||||
|
exclude_groups = {},
|
||||||
|
-- function: code to be executed after highlight groups are cleared
|
||||||
|
-- Also the user event "TransparentClear" will be triggered
|
||||||
|
on_clear = function() end,
|
||||||
|
config = function()
|
||||||
|
require("transparent").clear_prefix("lualine")
|
||||||
|
require("transparent").clear_prefix("NeoTree")
|
||||||
|
require("transparent").clear_prefix("BufferLine")
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
//
|
||||||
|
// %FFILE%
|
||||||
|
// Copyright (C) %YEAR% %USER% <%MAIL%>
|
||||||
|
// %FDATE%
|
||||||
|
// Distributed under terms of the %LICENSE% license.
|
||||||
|
//
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
%HERE%
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
<script setup>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
//
|
||||||
|
// %FFILE%
|
||||||
|
// Copyright (C) %YEAR% %USER% <%MAIL%>
|
||||||
|
// %FDATE%
|
||||||
|
// Distributed under terms of the %LICENSE% license.
|
||||||
|
//
|
||||||
|
|
||||||
|
%HERE%
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* %FFILE%
|
||||||
|
* Copyright (C) %YEAR% %USER% <%MAIL%>
|
||||||
|
* %FDATE%
|
||||||
|
* Distributed under terms of the %LICENSE% license.
|
||||||
|
*/
|
||||||
|
|
||||||
|
%HERE%
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
<!--
|
||||||
|
* %FFILE%
|
||||||
|
* Copyright (C) %YEAR% %USER% <%MAIL%>
|
||||||
|
* %FDATE%
|
||||||
|
* Distributed under terms of the %LICENSE% license.
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<div>%HERE%</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# %FFILE%
|
||||||
|
# Copyright (C) %YEAR% %USER% <%MAIL%>
|
||||||
|
# %FDATE%
|
||||||
|
# Distributed under terms of the %LICENSE% license.
|
||||||
|
#
|
||||||
|
|
||||||
|
all:
|
||||||
|
%HERE%@echo "%FFILE% needs your attention"
|
||||||
Reference in New Issue
Block a user