This commit is contained in:
dedal.qq 2024-11-19 01:13:38 +03:00
parent 6a2c2ddc61
commit 7c9a35820d
3 changed files with 21 additions and 2 deletions

View File

@ -2,6 +2,7 @@ local map = vim.keymap.set
-- neo-tree -- neo-tree
map("n", "<leader>e", ":Neotree<CR>", { desc = "nvimtree focus window" }) map("n", "<leader>e", ":Neotree<CR>", { desc = "nvimtree focus window" })
map("n", "<leader>g", ":Neotree git_status float<CR>", { desc = "open gis status" })
-- telescope -- telescope
map("n", "<leader>ff", ":Telescope live_grep<CR>", { desc = "telescope live grep" }) map("n", "<leader>ff", ":Telescope live_grep<CR>", { desc = "telescope live grep" })

View File

@ -1,11 +1,12 @@
return { return {
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
event = "User FilePost", event = "User FilePost",
opts = function() opts = function()
return { return {
signs = { signs = {
delete = { text = "󰍵" }, delete = { text = "󰗨" },
changedelete = { text = "󱕖" }, changedelete = { text = "󰜥" },
}, },
} }
end, end,

View File

@ -1,3 +1,5 @@
local fn = vim.fn
return { return {
"nvim-neo-tree/neo-tree.nvim", "nvim-neo-tree/neo-tree.nvim",
branch = "v3.x", branch = "v3.x",
@ -7,4 +9,19 @@ return {
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
}, },
config = function()
fn.sign_define("DiagnosticSignError", { text = "", texthl = "DiagnosticSignError" })
fn.sign_define("DiagnosticSignWarn", { text = "", texthl = "DiagnosticSignWarn" })
fn.sign_define("DiagnosticSignInfo", { text = "", texthl = "DiagnosticSignInfo" })
fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" })
require("neo-tree").setup({
default_component_configs = {
modified = {
symbol = "",
highlight = "NeoTreeModified",
},
},
})
end,
} }