diff --git a/lua/config/keymaping.lua b/lua/config/keymaping.lua index 179a3f6..4ba7717 100644 --- a/lua/config/keymaping.lua +++ b/lua/config/keymaping.lua @@ -2,6 +2,7 @@ local map = vim.keymap.set -- neo-tree map("n", "e", ":Neotree", { desc = "nvimtree focus window" }) +map("n", "g", ":Neotree git_status float", { desc = "open gis status" }) -- telescope map("n", "ff", ":Telescope live_grep", { desc = "telescope live grep" }) diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua index 405db5d..f76b116 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/gitsigns.lua @@ -1,11 +1,12 @@ return { "lewis6991/gitsigns.nvim", + event = "User FilePost", opts = function() return { signs = { - delete = { text = "󰍵" }, - changedelete = { text = "󱕖" }, + delete = { text = "󰗨" }, + changedelete = { text = "󰜥" }, }, } end, diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua index 8bf9ff3..63c0002 100644 --- a/lua/plugins/neo-tree.lua +++ b/lua/plugins/neo-tree.lua @@ -1,3 +1,5 @@ +local fn = vim.fn + return { "nvim-neo-tree/neo-tree.nvim", branch = "v3.x", @@ -7,4 +9,19 @@ return { "MunifTanjim/nui.nvim", -- "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, }