remove old code

This commit is contained in:
xfy
2025-03-11 08:49:45 +08:00
parent b4263bf462
commit d26fe338f6
5 changed files with 58 additions and 92 deletions

View File

@ -78,7 +78,6 @@ opt.number = true -- 显示行号
opt.pumblend = 10 -- 弹出菜单透明度
opt.pumheight = 10 -- 弹出菜单最大条目数
opt.relativenumber = true -- 显示相对行号
opt.scrolloff = 4 -- 滚动时保留的行数
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize", "help", "globals", "skiprtp", "folds" }
opt.shiftround = true -- 缩进取整
opt.shiftwidth = 2 -- 缩进大小

View File

@ -1,36 +0,0 @@
return {
-- "akinsho/bufferline.nvim",
-- event = { "BufRead", "BufNew" },
-- dependencies = { "nvim-tree/nvim-web-devicons" },
-- version = "*",
-- opts = {
-- options = {
-- diagnostics = "nvim_lsp",
-- show_buffer_close_icons = false,
-- themable = true,
-- indicator = {
-- icon = "",
-- style = "none",
-- },
-- offsets = {
-- {
-- filetype = "NvimTree",
-- text = "",
-- text_align = "left",
-- separator = true,
-- },
-- },
-- },
-- },
-- config = function(_, opts)
-- require("bufferline").setup(opts)
--
-- local map = vim.keymap.set
-- map("n", "<leader>la", ":BufferLineCloseOthers<CR>", { silent = true })
-- map("n", "<leader>x", ":bp|bd# <CR>", { silent = true })
-- map("n", "<S-l>", ":BufferLineCycleNext<CR>", { silent = true })
-- map("n", "<S-h>", ":BufferLineCyclePrev<CR>", { silent = true })
-- map("n", "<A-l>", ":BufferLineMoveNext<CR>", { silent = true })
-- map("n", "<A-h>", ":BufferLineMovePrev<CR>", { silent = true })
-- end,
}

View File

@ -47,6 +47,9 @@ return {
{
"lewis6991/gitsigns.nvim",
event = { "BufReadPre", "BufNewFile" },
cond = function()
return vim.fn.isdirectory(".git") == 1
end,
opts = {
on_attach = function(bufnr)
local gs = package.loaded.gitsigns

View File

@ -1,23 +1,4 @@
return {
-- {
-- "echasnovski/mini.icons",
-- lazy = true,
-- opts = {
-- file = {
-- [".keep"] = { glyph = "󰊢", hl = "MiniIconsGrey" },
-- ["devcontainer.json"] = { glyph = "", hl = "MiniIconsAzure" },
-- },
-- filetype = {
-- dotenv = { glyph = "", hl = "MiniIconsYellow" },
-- },
-- },
-- init = function()
-- package.preload["nvim-web-devicons"] = function()
-- require("mini.icons").mock_nvim_web_devicons()
-- return package.loaded["nvim-web-devicons"]
-- end
-- end,
-- },
{
"nvim-pack/nvim-spectre",
opts = {},
@ -146,6 +127,42 @@ return {
},
},
},
{
"folke/todo-comments.nvim",
opts = {},
},
{
"j-hui/fidget.nvim", -- lsp messages
event = "VeryLazy",
opts = {
integration = {
["nvim-tree"] = {
enable = false, -- Integrate with nvim-tree/nvim-tree.lua (if installed)
},
["xcodebuild-nvim"] = {
enable = false, -- Integrate with wojciech-kulik/xcodebuild.nvim (if installed)
},
},
notification = {
window = {
winblend = 0, -- Background color opacity in the notification window
},
},
},
},
{
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 500
end,
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
},
-- {
-- "echasnovski/mini.indentscope",
-- version = false,
@ -176,27 +193,23 @@ return {
-- })
-- end,
-- },
{
"folke/todo-comments.nvim",
opts = {},
},
{
"j-hui/fidget.nvim", -- lsp messages
event = "VeryLazy",
opts = {
integration = {
["nvim-tree"] = {
enable = false, -- Integrate with nvim-tree/nvim-tree.lua (if installed)
},
["xcodebuild-nvim"] = {
enable = false, -- Integrate with wojciech-kulik/xcodebuild.nvim (if installed)
},
},
notification = {
window = {
winblend = 0, -- Background color opacity in the notification window
},
},
},
},
-- {
-- "echasnovski/mini.icons",
-- lazy = true,
-- opts = {
-- file = {
-- [".keep"] = { glyph = "󰊢", hl = "MiniIconsGrey" },
-- ["devcontainer.json"] = { glyph = "", hl = "MiniIconsAzure" },
-- },
-- filetype = {
-- dotenv = { glyph = "", hl = "MiniIconsYellow" },
-- },
-- },
-- init = function()
-- package.preload["nvim-web-devicons"] = function()
-- require("mini.icons").mock_nvim_web_devicons()
-- return package.loaded["nvim-web-devicons"]
-- end
-- end,
-- },
}

View File

@ -1,13 +0,0 @@
return {
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 500
end,
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
}