mirror of
https://github.com/DefectingCat/nvim
synced 2025-07-15 16:51:33 +00:00
remove old code
This commit is contained in:
@ -78,7 +78,6 @@ opt.number = true -- 显示行号
|
|||||||
opt.pumblend = 10 -- 弹出菜单透明度
|
opt.pumblend = 10 -- 弹出菜单透明度
|
||||||
opt.pumheight = 10 -- 弹出菜单最大条目数
|
opt.pumheight = 10 -- 弹出菜单最大条目数
|
||||||
opt.relativenumber = true -- 显示相对行号
|
opt.relativenumber = true -- 显示相对行号
|
||||||
opt.scrolloff = 4 -- 滚动时保留的行数
|
|
||||||
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize", "help", "globals", "skiprtp", "folds" }
|
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize", "help", "globals", "skiprtp", "folds" }
|
||||||
opt.shiftround = true -- 缩进取整
|
opt.shiftround = true -- 缩进取整
|
||||||
opt.shiftwidth = 2 -- 缩进大小
|
opt.shiftwidth = 2 -- 缩进大小
|
||||||
|
@ -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,
|
|
||||||
}
|
|
@ -47,6 +47,9 @@ return {
|
|||||||
{
|
{
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
cond = function()
|
||||||
|
return vim.fn.isdirectory(".git") == 1
|
||||||
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
on_attach = function(bufnr)
|
on_attach = function(bufnr)
|
||||||
local gs = package.loaded.gitsigns
|
local gs = package.loaded.gitsigns
|
||||||
|
@ -1,23 +1,4 @@
|
|||||||
return {
|
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",
|
"nvim-pack/nvim-spectre",
|
||||||
opts = {},
|
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",
|
-- "echasnovski/mini.indentscope",
|
||||||
-- version = false,
|
-- version = false,
|
||||||
@ -176,27 +193,23 @@ return {
|
|||||||
-- })
|
-- })
|
||||||
-- end,
|
-- end,
|
||||||
-- },
|
-- },
|
||||||
{
|
-- {
|
||||||
"folke/todo-comments.nvim",
|
-- "echasnovski/mini.icons",
|
||||||
opts = {},
|
-- lazy = true,
|
||||||
},
|
-- opts = {
|
||||||
{
|
-- file = {
|
||||||
"j-hui/fidget.nvim", -- lsp messages
|
-- [".keep"] = { glyph = "", hl = "MiniIconsGrey" },
|
||||||
event = "VeryLazy",
|
-- ["devcontainer.json"] = { glyph = "", hl = "MiniIconsAzure" },
|
||||||
opts = {
|
-- },
|
||||||
integration = {
|
-- filetype = {
|
||||||
["nvim-tree"] = {
|
-- dotenv = { glyph = "", hl = "MiniIconsYellow" },
|
||||||
enable = false, -- Integrate with nvim-tree/nvim-tree.lua (if installed)
|
-- },
|
||||||
},
|
-- },
|
||||||
["xcodebuild-nvim"] = {
|
-- init = function()
|
||||||
enable = false, -- Integrate with wojciech-kulik/xcodebuild.nvim (if installed)
|
-- package.preload["nvim-web-devicons"] = function()
|
||||||
},
|
-- require("mini.icons").mock_nvim_web_devicons()
|
||||||
},
|
-- return package.loaded["nvim-web-devicons"]
|
||||||
notification = {
|
-- end
|
||||||
window = {
|
-- end,
|
||||||
winblend = 0, -- Background color opacity in the notification window
|
-- },
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
|
||||||
},
|
|
||||||
}
|
|
Reference in New Issue
Block a user