From d6c489f9dcec7ea7fec9c9e4e49ca01ac0354111 Mon Sep 17 00:00:00 2001 From: asep komarudin Date: Mon, 4 Sep 2023 13:37:31 +0700 Subject: [PATCH] update --- lazy-lock.json | 4 +- lua/custom/default.lua | 3 +- lua/custom/plugins/neotree.lua | 76 ++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 lua/custom/plugins/neotree.lua diff --git a/lazy-lock.json b/lazy-lock.json index 6c5d01b..cc4de7d 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -15,7 +15,6 @@ "fidget.nvim": { "branch": "main", "commit": "0ba1e16d07627532b6cae915cc992ecac249fb97" }, "friendly-snippets": { "branch": "main", "commit": "ebf6d6e83494cdd88a54a429340256f4dbb6a052" }, "gitsigns.nvim": { "branch": "main", "commit": "bb808fc7376ed7bac0fbe8f47b83d4bf01738167" }, - "gruvbox-baby": { "branch": "main", "commit": "ea71b4225d0140103d99748ca4a33ecf22c03f62" }, "impatient.nvim": { "branch": "main", "commit": "969f2c5c90457612c09cf2a13fee1adaa986d350" }, "indent-blankline.nvim": { "branch": "master", "commit": "9637670896b68805430e2f72cf5d16be5b97a22a" }, "jaq-nvim": { "branch": "master", "commit": "236296aae555657487d1bb4d066cbde9d79d8cd4" }, @@ -46,9 +45,10 @@ "nvim-web-devicons": { "branch": "master", "commit": "bc11ee2498de2310de5776477dd9dce65d03b464" }, "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" }, "smart-splits.nvim": { "branch": "master", "commit": "a2668b59bf3f9b87d47b42e7e8d08200ff0ab3b5" }, - "telescope.nvim": { "branch": "master", "commit": "3fae9c1e14910e6669bb8ecbb473aba6a9e13b33" }, + "telescope.nvim": { "branch": "master", "commit": "6b79d7a6a45adc1508a7afee5bc973173ec22f59" }, "todo-comments.nvim": { "branch": "main", "commit": "8febc60a76feefd8203077ef78b6a262ea1a41f9" }, "toggleterm.nvim": { "branch": "main", "commit": "b90a1381e9b5b8596f49070ee86c71db267ac868" }, + "tokyonight.nvim": { "branch": "main", "commit": "9a01eada39558dc3243278e6805d90e8dff45dc0" }, "trouble.nvim": { "branch": "main", "commit": "fc4bb22b1d2cd5eb46fe61a9f6d6416d742beb5c" }, "vim-bbye": { "branch": "master", "commit": "903f5eb17f72ebf7b0b1524bbb792c0b36761af6" }, "vim-illuminate": { "branch": "master", "commit": "76f28e858f1caae87bfa45fb4fd09e4b053fc45b" }, diff --git a/lua/custom/default.lua b/lua/custom/default.lua index 05c8487..b9486ac 100644 --- a/lua/custom/default.lua +++ b/lua/custom/default.lua @@ -12,7 +12,7 @@ -- catppuccin, catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha -- dracula -- nightfox, dayfox, dawnfox, duskfox, nordfox, terafox, carbonfox -vim.g.pcode_colorscheme = "gruvbox-baby" +vim.g.pcode_colorscheme = "tokyonight" -- custom transparent mode -- only support @@ -135,6 +135,7 @@ vim.g.pcode_whichkey = { c = { "lua require('mini.map').close()", "Minimap Close" }, o = { "lua require('mini.map').open()", "Minimap Open" }, }, + ["e"] = { "NvimTreeToggle", "Explorer" }, } -- https://github.com/CRAG666/code_runner.nvim diff --git a/lua/custom/plugins/neotree.lua b/lua/custom/plugins/neotree.lua new file mode 100644 index 0000000..7d4e95d --- /dev/null +++ b/lua/custom/plugins/neotree.lua @@ -0,0 +1,76 @@ +return { + -- { "kyazdani42/nvim-tree.lua", enabled = false }, + -- { + -- "nvim-neo-tree/neo-tree.nvim", + -- dependencies = { "MunifTanjim/nui.nvim" }, + -- event = "BufWinEnter", + -- cmd = "Neotree", + -- keys = { + -- { + -- "fE", + -- function() + -- require("neo-tree.command").execute({ toggle = true, dir = vim.loop.cwd() }) + -- end, + -- desc = "Explorer NeoTree (cwd)", + -- }, + -- { "n", "Neotree toggle", desc = "Explorer NeoTree (root dir)", remap = true }, + -- { "E", "fE", desc = "Explorer NeoTree (cwd)", remap = true }, + -- }, + -- deactivate = function() + -- vim.cmd([[Neotree close]]) + -- end, + -- init = function() + -- vim.g.neo_tree_remove_legacy_commands = 1 + -- if vim.fn.argc() == 1 then + -- local stat = vim.loop.fs_stat(vim.fn.argv(0)) + -- if stat and stat.type == "directory" then + -- require("neo-tree") + -- end + -- end + -- end, + -- opts = { + -- filesystem = { + -- bind_to_cwd = false, + -- follow_current_file = true, + -- }, + -- window = { + -- position = "left", + -- width = 30, + -- mappings = { + -- [""] = "none", + -- }, + -- }, + -- default_component_configs = { + -- icon = { + -- folder_closed = "", + -- folder_open = "", + -- folder_empty = "ﰊ", + -- -- The next two settings are only a fallback, if you use nvim-web-devicons and configure default icons there + -- -- then these will never be used. + -- default = "*", + -- highlight = "NeoTreeFileIcon", + -- }, + -- modified = { + -- symbol = "[+]", + -- highlight = "NeoTreeModified", + -- }, + -- git_status = { + -- symbols = { + -- -- Change type + -- added = "✚", -- or "✚", but this is redundant info if you use git_status_colors on the name + -- modified = "", -- or "", but this is redundant info if you use git_status_colors on the name + -- deleted = "✖", -- this can only be used in the git_status source + -- renamed = "", -- this can only be used in the git_status source + -- -- Status type + -- untracked = "", + -- ignored = "", + -- -- unstaged = "", + -- unstaged = "", + -- staged = "", + -- conflict = "", + -- }, + -- }, + -- }, + -- }, + -- }, +}