From 9bf0fe32abe99073bea686cb5c3b598fe1ed96bd Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Wed, 16 Apr 2025 17:07:26 +0400 Subject: [PATCH] chore: remove unused plugins --- nvim/lazy-lock.json | 2 - nvim/lua/themystery/plugins/copilot.lua | 13 ----- nvim/lua/themystery/plugins/cord.lua | 39 ------------- nvim/lua/themystery/plugins/tree.lua | 73 ------------------------ nvim/lua/themystery/plugins/whichkey.lua | 19 ------ 5 files changed, 146 deletions(-) delete mode 100644 nvim/lua/themystery/plugins/copilot.lua delete mode 100644 nvim/lua/themystery/plugins/cord.lua delete mode 100644 nvim/lua/themystery/plugins/tree.lua delete mode 100644 nvim/lua/themystery/plugins/whichkey.lua diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index f3826a6..c6ea1ce 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -8,7 +8,6 @@ "colorful-menu.nvim": { "branch": "master", "commit": "f80feb8a6706f965321aff24d0ed3849f02a7f77" }, "conform.nvim": { "branch": "master", "commit": "eebc724d12c5579d733d1f801386e0ceb909d001" }, "copilot.vim": { "branch": "release", "commit": "782461159655b259cff10ecff05efa761e3d4764" }, - "cord.nvim": { "branch": "master", "commit": "40e0a17fc023011b9436d0b3583f874818f3ed3b" }, "crates.nvim": { "branch": "main", "commit": "85356807f3a0e9a3f7015586f3a010170d338686" }, "csharpls-extended-lsp.nvim": { "branch": "master", "commit": "53c6dfc9790d262edd3d6a4483294bedf53d70f5" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, @@ -66,6 +65,5 @@ "vim-dotenv": { "branch": "master", "commit": "5c51cfcf8d87280d6414e03cd6b253eb70ecb800" }, "vim-fugitive": { "branch": "master", "commit": "4a745ea72fa93bb15dd077109afbb3d1809383f2" }, "vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" }, - "which-key.nvim": { "branch": "main", "commit": "fb070344402cfc662299d9914f5546d840a22126" }, "zen-mode.nvim": { "branch": "main", "commit": "863f150ca321b3dd8aa1a2b69b5f411a220e144f" } } diff --git a/nvim/lua/themystery/plugins/copilot.lua b/nvim/lua/themystery/plugins/copilot.lua deleted file mode 100644 index 35bd77e..0000000 --- a/nvim/lua/themystery/plugins/copilot.lua +++ /dev/null @@ -1,13 +0,0 @@ -return { - "github/copilot.vim", - enabled = false, - config = function() - -- vim.g.copilot_no_tab_map = true - vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { silent = true, expr = true }) - vim.g.copilot_filetypes = { - -- because i'm learning rust - rust = false, - go = false, - }; - end -} diff --git a/nvim/lua/themystery/plugins/cord.lua b/nvim/lua/themystery/plugins/cord.lua deleted file mode 100644 index 68c6c81..0000000 --- a/nvim/lua/themystery/plugins/cord.lua +++ /dev/null @@ -1,39 +0,0 @@ -return { - 'vyfor/cord.nvim', - enabled = false, - build = './build', - event = 'VeryLazy', - config = function() - require('cord').setup({ - timer = { - enable = true, -- Enable automatically updating presence - interval = 1500, -- Interval between presence updates in milliseconds (min 500) - reset_on_idle = true, -- Reset start timestamp on idle - reset_on_change = false, -- Reset start timestamp on presence change - }, - text = { - viewing = 'Viewing {}', -- Text to display when viewing a readonly file - editing = 'Editing {}', -- Text to display when editing a file - file_browser = 'Browsing files in {}', -- Text to display when browsing files (Empty string to disable) - plugin_manager = 'Managing plugins in {}', -- Text to display when managing plugins (Empty string to disable) - lsp_manager = 'Configuring LSP in {}', -- Text to display when managing LSP servers (Empty string to disable) - workspace = '', - }, - display = { - show_time = true, -- Display start timestamp - show_repository = false, -- Display 'View repository' button linked to repository url, if any - show_cursor_position = false, -- Display line and column number of cursor's position - swap_fields = false, -- If enabled, workspace is displayed first - workspace_blacklist = {}, -- List of workspace names to hide - }, - idle = { - enable = true, -- Enable idle status - show_status = true, -- Display idle status, disable to hide the rich presence on idle - timeout = 300000, -- Timeout in milliseconds after which the idle status is set, 0 to display immediately - disable_on_focus = false, -- Do not display idle status when neovim is focused - text = 'Idle', -- Text to display when idle - tooltip = '💤', -- Text to display when hovering over the idle image - }, - }) - end -} diff --git a/nvim/lua/themystery/plugins/tree.lua b/nvim/lua/themystery/plugins/tree.lua deleted file mode 100644 index 6ac7670..0000000 --- a/nvim/lua/themystery/plugins/tree.lua +++ /dev/null @@ -1,73 +0,0 @@ -return { - "nvim-neo-tree/neo-tree.nvim", - branch = "v3.x", - enabled = false, - dependencies = { - "nvim-lua/plenary.nvim", - "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended - "MunifTanjim/nui.nvim", - }, - config = function() - -- https://github.com/nvim-neo-tree/neo-tree.nvim/issues/202#issuecomment-1428278234 - -- These two functions were taken from the issue above. So, Thanks! - - local delete = function(state) - local inputs = require("neo-tree.ui.inputs") - local path = state.tree:get_node().path - local msg = "Are you sure you want to trash " .. path - inputs.confirm(msg, function(confirmed) - if not confirmed then return end - - vim.fn.system { "trash", path } - require("neo-tree.sources.manager").refresh(state.name) - end) - end - - -- over write default 'delete_visual' command to 'trash' x n. - local delete_visual = function(state, selected_nodes) - local inputs = require("neo-tree.ui.inputs") - - -- get table items count - function GetTableLen(tbl) - local len = 0 - for n in pairs(tbl) do - len = len + 1 - end - return len - end - - local count = GetTableLen(selected_nodes) - local msg = "Are you sure you want to trash " .. count .. " files ?" - inputs.confirm(msg, function(confirmed) - if not confirmed then return end - for _, node in ipairs(selected_nodes) do - vim.fn.system { "trash", node.path } - end - require("neo-tree.sources.manager").refresh(state.name) - end) - end - - - - vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) - require("neo-tree").setup({ - window = { - position = "float", - }, - filesystem = { - filtered_items = { - visible = true - }, - use_libuv_file_watcher = true, - commands = { - delete = delete, - delete_visual = delete_visual, - }, - hijack_netrw_behavior = "open_current" - }, - }) - vim.keymap.set("n", "tf", vim.cmd.Neotree) - vim.keymap.set("n", "tt", "Neotree reveal=true position=float toggle ") - end - -} diff --git a/nvim/lua/themystery/plugins/whichkey.lua b/nvim/lua/themystery/plugins/whichkey.lua deleted file mode 100644 index ea29b87..0000000 --- a/nvim/lua/themystery/plugins/whichkey.lua +++ /dev/null @@ -1,19 +0,0 @@ -return { - "folke/which-key.nvim", - event = "VeryLazy", - enabled = false, - opts = { - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - }, - keys = { - { - "?", - function() - require("which-key").show({ global = false }) - end, - desc = "Buffer Local Keymaps (which-key)", - }, - }, -}