From 2bcbb887b217298a725bc881a5202786b08d0c77 Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Sun, 19 Oct 2025 22:45:51 +0300 Subject: [PATCH] feat(nvim): remove unused plugins --- .config/nvim/lua/casraf/plugins/dadbod.lua | 36 ------------------- .../nvim/lua/casraf/plugins/doc_search.lua | 2 ++ .config/nvim/lua/casraf/plugins/pkl.lua | 24 ------------- README.md | 20 +++++++---- 4 files changed, 16 insertions(+), 66 deletions(-) delete mode 100644 .config/nvim/lua/casraf/plugins/dadbod.lua delete mode 100644 .config/nvim/lua/casraf/plugins/pkl.lua diff --git a/.config/nvim/lua/casraf/plugins/dadbod.lua b/.config/nvim/lua/casraf/plugins/dadbod.lua deleted file mode 100644 index ba5f1ecf..00000000 --- a/.config/nvim/lua/casraf/plugins/dadbod.lua +++ /dev/null @@ -1,36 +0,0 @@ -return { - 'tpope/vim-dadbod', - dependencies = { - 'kristijanhusak/vim-dadbod-ui', - 'kristijanhusak/vim-dadbod-completion', - }, - config = function() - local function db_completion() - require("cmp").setup.buffer { sources = { { name = "vim-dadbod-completion" } } } - end - vim.g.db_ui_save_location = vim.fn.stdpath "config" .. require("plenary.path").path.sep .. "db_ui" - - vim.api.nvim_create_autocmd("FileType", { - pattern = { - "sql", - }, - command = [[setlocal omnifunc=vim_dadbod_completion#omni]], - }) - - vim.api.nvim_create_autocmd("FileType", { - pattern = { - "sql", - "mysql", - "plsql", - "postgresql", - "graphql", - }, - callback = function() - vim.schedule(db_completion) - end, - }) - - vim.keymap.set("x", "dB", "DBUIToggle", { desc = "[D]ad[B]od UI", silent = true }) - vim.keymap.set("n", "B", "DBUIToggle", { desc = "Dad[B]od UI", silent = true }) - end, -} diff --git a/.config/nvim/lua/casraf/plugins/doc_search.lua b/.config/nvim/lua/casraf/plugins/doc_search.lua index 09bc071c..c2f02358 100644 --- a/.config/nvim/lua/casraf/plugins/doc_search.lua +++ b/.config/nvim/lua/casraf/plugins/doc_search.lua @@ -6,6 +6,7 @@ return { local npm = { name = "NPM", url = "https://www.npmjs.com/search?q={query}" } local dart = { name = "Dart", url = "https://dart.dev/search?q={query}" } local pub = { name = "Pub.dev", url = "https://pub.dev/search?q={query}" } + local lua = { name = "Lua", url = "https://www.lua.org/search.html?q={query}" } require("casraf.lib.doc_search").setup({ keymap = "dd", @@ -16,6 +17,7 @@ return { typescriptreact = { mdn, react, npm }, dart = { dart, pub }, css = { mdn }, + lua = { lua }, }, }) end, diff --git a/.config/nvim/lua/casraf/plugins/pkl.lua b/.config/nvim/lua/casraf/plugins/pkl.lua deleted file mode 100644 index d68c02bc..00000000 --- a/.config/nvim/lua/casraf/plugins/pkl.lua +++ /dev/null @@ -1,24 +0,0 @@ -return { - "apple/pkl-neovim", - lazy = true, - ft = "pkl", - dependencies = { - { - "nvim-treesitter/nvim-treesitter", - build = function(_) - vim.cmd("TSUpdate") - end, - }, - "L3MON4D3/LuaSnip", - }, - build = function() - require('pkl-neovim.internal').init() - - -- Set up syntax highlighting. - vim.cmd("TSInstall! pkl") - end, - config = function() - -- Set up snippets. - require("luasnip.loaders.from_snipmate").lazy_load() - end, -} diff --git a/README.md b/README.md index 48e4101e..6eebeec6 100644 --- a/README.md +++ b/README.md @@ -29,34 +29,41 @@ I have many many plugins and configurations going on. Started from [kickstart.nvim](https://github.com/nvim-lua/kickstart.nvim) and heavily modified. -Plugins are installed and configured in `.config/nvim` and its subdirectory `lua/plugins`. +Plugins are installed and configured in `.config/nvim/lua/casraf/plugins`. Some (but not all) of the plugins/modifications are listed here: | File | Description | Related plugins | | -------------------- | ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `autoformat.lua` | Code auto formatting | [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) | -| `barbar.lua` | Tabs | [romgrk/barbar.nvim](https://github.com/romgrk/barbar.nvim) | +| `barbar.lua` | Tabs | [romgrk/barbar.nvim](https://github.com/romgrk/barbar.nvim) | +| `ccc.lua` | Color picker and highlighter | [uga-rosa/ccc.nvim](https://github.com/uga-rosa/ccc.nvim) | +| `cmp.lua` | Autocompletion with LSP, snippets, and LLM integration | [hrsh7th/nvim-cmp](https://github.com/hrsh7th/nvim-cmp), [L3MON4D3/LuaSnip](https://github.com/L3MON4D3/LuaSnip) | | `colorscheme.lua` | Color scheme switcher | | -| `dadbod.lua` | Dadbod - Database manager for nvim | [tpope/vim-dadbod](https://github.com/tpope/vim-dadbod) | | `debug.lua` | Debugger-related code, most of these are not maintained/tested | [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap) | +| `doc_search.lua` | Search documentation for different languages (MDN, React, NPM, Dart, etc.) | | | `floating-input.lua` | Floating input | [liangxianzhe/floating-input.nvim](https://github.com/liangxianzhe/floating-input.nvim) | +| `format.lua` | Code formatting with Prettier | [MunifTanjim/prettier.nvim](https://github.com/MunifTanjim/prettier.nvim) | | `fugitive.lua` | Git manager - I use LazyGit now, but this remain mostly for git blame functionality | [tpope/vim-fugitive](https://github.com/tpope/vim-fugitive) | +| `git_open.lua` | Open git repositories, branches, commits, and files in browser | | +| `go.lua` | Go language support and tooling | [ray-x/go.nvim](https://github.com/ray-x/go.nvim) | | `lazygit.lua` | LazyGit inside nvim | [kdheepak/lazygit.nvim](https://github.com/kdheepak/lazygit.nvim) | +| `license.lua` | SPDX license header snippets | | | `llm.lua` | LLM - Copilot, ChatGPT (requires `OPENAI_API_KEY` env), Codeium | [zbirenbaum/copilot.lua](https://github.com/zbirenbaum/copilot.lua), [Exafunction/codeium.nvim](https://github.com/Exafunction/codeium.nvim), [jackMort/ChatGPT.nvim](https://github.com/jackMort/ChatGPT.nvim) | | `lsp.lua` | LSP related configs | [williamboman/mason-lspconfig.nvim](https://github.com/williamboman/mason-lspconfig.nvim), [akinsho/flutter-tools.nvim](https://github.com/akinsho/flutter-tools.nvim) | | `matchup.lua` | Enables moving between function start/end as you would between brackets using `%` | [andymass/vim-matchup](https://github.com/andymass/vim-matchup) | -| `media_files.lua` | Telescope plugin to show media file previews | [nvim-telescope/telescope-media-files.nvim](https://github.com/nvim-telescope/telescope-media-files.nvim) | | `noice.lua` | Notifications & UI improvements | [folke/noice.nvim](https://github.com/folke/noice.nvim) | +| `notes.lua` | Notes management with Telescope integration | | | `nvim-test.lua` | Run tests for any project type inside nvim | [klen/nvim-test](https://github.com/klen/nvim-test) | | `oil.lua` | Better than netrw. Fight me. (Lets you move between and edit directories as you would a normal file) | [stevearc/oil.nvim](https://github.com/stevearc/oil.nvim) | -| `prettier.lua` | Implements prettier code formatter into lua | [MunifTanjim/prettier.nvim](https://github.com/MunifTanjim/prettier.nvim) | +| `popup-menu.lua` | Custom right-click popup menu with LSP actions | | | `project_runner.lua` | Run prepared terminal commands per filetype - e.g. package.json scripts from ts/js files (Not a plugin) | | | `quicklist.lua` | Delete/add to vim quicklist | | | `quotes.lua` | Allows you to toggle between `\``, `"`and`'` quotes around the cursor | | | `remap.lua` | General vim remaps not related to specific plugins | | | `schemastore.lua` | Auto-loads JSON `$schema` depending on filetype and name | [b0o/schemastore.nvim](https://github.com/b0o/schemastore.nvim) | -| `sort.lua` | Sort selected lines | [sQVe/sort.nvim](https://github.com/sQVe/sort.nvim) | +| `separators.lua` | Insert comment separator lines | | +| `session.lua` | Session management with auto save/restore | | | `statusline.lua` | Status line UI updates | [nvim-lualine/lualine.nvim](https://github.com/nvim-lualine/lualine.nvim) | | `surround.lua` | Surround any text with anything like brackets, quotes, HTML tags or custom strings | [kylechui/nvim-surround](https://github.com/kylechui/nvim-surround) | | `telescope.lua` | Fuzzy finder, preview and picker for files/commands/custom | [nvim-telescope/telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) | @@ -66,6 +73,7 @@ Some (but not all) of the plugins/modifications are listed here: | `treesitter.lua` | Syntax highlighting on steroids | [nvim-treesitter/nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) | | `trouble.lua` | View list of diagnostics, quick fixes, TODOs, etc | [folke/trouble.nvim](https://github.com/folke/trouble.nvim) | | `undotree.lua` | Undo each file as you would a git branch! | [mbbill/undotree](https://github.com/mbbill/undotree) | +| `uuid_gen.lua` | UUID generation snippet | [L3MON4D3/LuaSnip](https://github.com/L3MON4D3/LuaSnip) | | `visual-multi.lua` | Multiple cursor support for nvim | [mg979/vim-visual-multi](https://github.com/mg979/vim-visual-multi) | ## How to install