From 3903e87c475f6613dc2a8346d173f7bae59cb897 Mon Sep 17 00:00:00 2001 From: andrzej Date: Wed, 18 Sep 2024 17:54:04 +0200 Subject: [PATCH] purge unused plugins --- nvim/.config/nvim/lua/options/default.lua | 2 +- nvim/.config/nvim/lua/plugins/docs.lua | 42 ----------------- nvim/.config/nvim/lua/plugins/harpoon.lua | 5 --- nvim/.config/nvim/lua/plugins/matchup.lua | 1 + nvim/.config/nvim/lua/plugins/mini.lua | 50 --------------------- nvim/.config/nvim/lua/plugins/neoscroll.lua | 17 ------- 6 files changed, 2 insertions(+), 115 deletions(-) delete mode 100644 nvim/.config/nvim/lua/plugins/docs.lua delete mode 100644 nvim/.config/nvim/lua/plugins/harpoon.lua delete mode 100644 nvim/.config/nvim/lua/plugins/mini.lua delete mode 100644 nvim/.config/nvim/lua/plugins/neoscroll.lua diff --git a/nvim/.config/nvim/lua/options/default.lua b/nvim/.config/nvim/lua/options/default.lua index c1e4e7f..e9e9ca6 100644 --- a/nvim/.config/nvim/lua/options/default.lua +++ b/nvim/.config/nvim/lua/options/default.lua @@ -39,7 +39,7 @@ vim.opt.inccommand = "split" vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. -vim.opt.scrolloff = 10 +vim.opt.scrolloff = 20 vim.opt.foldmethod = "expr" vim.opt.foldexpr = "nvim_treesitter#foldexpr()" diff --git a/nvim/.config/nvim/lua/plugins/docs.lua b/nvim/.config/nvim/lua/plugins/docs.lua deleted file mode 100644 index 2a7efe5..0000000 --- a/nvim/.config/nvim/lua/plugins/docs.lua +++ /dev/null @@ -1,42 +0,0 @@ -return { - "luckasRanarison/nvim-devdocs", - dependencies = { - "nvim-lua/plenary.nvim", - "nvim-telescope/telescope.nvim", - "nvim-treesitter/nvim-treesitter", - }, - init = function() - vim.keymap.set( - "n", - "sm", - "vsplitDevdocsOpenCurrent", - { desc = "[S]earch the Friendly [M]anual" } - ) - end, - opts = { - dir_path = vim.fn.stdpath("data") .. "/devdocs", -- installation directory - telescope = {}, -- passed to the telescope picker - filetypes = { - -- extends the filetype to docs mappings used by the `DevdocsOpenCurrent` command, the version doesn't have to be specified - -- scss = "sass", - -- javascript = { "node", "javascript" } - }, - float_win = { -- passed to nvim_open_win(), see :h api-floatwin - relative = "editor", - height = 25, - width = 100, - border = "rounded", - }, - wrap = false, -- text wrap, only applies to floating window - previewer_cmd = nil, -- for example: "glow" - cmd_args = { "-s", "dark", "-w", "80" }, - cmd_ignore = {}, -- ignore cmd rendering for the listed docs - picker_cmd = false, -- use cmd previewer in picker preview - picker_cmd_args = { "-s", "dark", "-w", "50" }, - mappings = { -- keymaps for the doc buffer - open_in_browser = "", - }, - ensure_installed = {}, -- get automatically installed - after_open = function(bufnr) end, -- callback that runs after the Devdocs window is opened. Devdocs buffer ID will be passed in - }, -} diff --git a/nvim/.config/nvim/lua/plugins/harpoon.lua b/nvim/.config/nvim/lua/plugins/harpoon.lua deleted file mode 100644 index c8aa32c..0000000 --- a/nvim/.config/nvim/lua/plugins/harpoon.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "ThePrimeagen/harpoon", - branch = "harpoon2", - dependencies = { "nvim-lua/plenary.nvim" }, -} diff --git a/nvim/.config/nvim/lua/plugins/matchup.lua b/nvim/.config/nvim/lua/plugins/matchup.lua index 6faa9fa..b20a7f5 100644 --- a/nvim/.config/nvim/lua/plugins/matchup.lua +++ b/nvim/.config/nvim/lua/plugins/matchup.lua @@ -1,4 +1,5 @@ return { + --this plugin supercharges the % "andymass/vim-matchup", config = function() vim.g.matchup_matchparen_offscreen = { method = "popup" } diff --git a/nvim/.config/nvim/lua/plugins/mini.lua b/nvim/.config/nvim/lua/plugins/mini.lua deleted file mode 100644 index 1b004f3..0000000 --- a/nvim/.config/nvim/lua/plugins/mini.lua +++ /dev/null @@ -1,50 +0,0 @@ -return { -- Collection of various small independent plugins/modules - "echasnovski/mini.nvim", - config = function() - -- Better Around/Inside textobjects - -- - -- Examples: - -- - va) - [V]isually select [A]round [)]paren - -- - yinq - [Y]ank [I]nside [N]ext [']quote - -- - ci' - [C]hange [I]nside [']quote - -- require("mini.ai").setup({ n_lines = 500 }) - - -- Add/delete/replace surroundings (brackets, quotes, etc.) - -- - -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren - -- - sd' - [S]urround [D]elete [']quotes - -- - sr)' - [S]urround [R]eplace [)] ['] - -- require("mini.surround").setup() - - -- ... and there is more! - -- Check out: https://github.com/echasnovski/mini.nvim - require("mini.move").setup() - -- require("mini.sessions").setup({ - -- -- Whether to read latest session if Neovim opened without file arguments - -- autoread = true, - -- - -- -- Whether to write current session before quitting Neovim - -- autowrite = true, - -- - -- -- Directory where global sessions are stored (use `''` to disable) - -- -- directory = --<"session" subdir of user data directory from |stdpath()|>, - -- - -- -- File for local session (use `''` to disable) - -- -- file = "Session.vim", - -- - -- -- Whether to force possibly harmful actions (meaning depends on function) - -- force = { read = false, write = true, delete = false }, - -- - -- -- Hook functions for actions. Default `nil` means 'do nothing'. - -- hooks = { - -- -- Before successful action - -- pre = { read = nil, write = nil, delete = nil }, - -- -- After successful action - -- post = { read = nil, write = nil, delete = nil }, - -- }, - -- - -- -- Whether to print session path after action - -- verbose = { read = false, write = true, delete = true }, - -- }) - end, -} diff --git a/nvim/.config/nvim/lua/plugins/neoscroll.lua b/nvim/.config/nvim/lua/plugins/neoscroll.lua deleted file mode 100644 index 6f1efb9..0000000 --- a/nvim/.config/nvim/lua/plugins/neoscroll.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - -- "karb94/neoscroll.nvim", - -- config = function() - -- require("neoscroll").setup({ - -- -- All these keys will be mapped to their corresponding default scrolling animation - -- mappings = { "", "", "", "", "", "", "zt", "zz", "zb" }, - -- hide_cursor = true, -- Hide cursor while scrolling - -- stop_eof = true, -- Stop at when scrolling downwards - -- respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file - -- cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further - -- easing_function = nil, -- Default easing function - -- pre_hook = nil, -- Function to run before the scrolling animation starts - -- post_hook = nil, -- Function to run after the scrolling animation ends - -- performance_mode = false, -- Disable "Performance Mode" on all buffers. - -- }) - -- end, -}