From ed3632f5ed16be05a1fcfacb798f620ffd7a11e8 Mon Sep 17 00:00:00 2001 From: Syd Amir Date: Fri, 20 Jan 2023 11:33:15 +0330 Subject: [PATCH] :fire: remove unsed packer files --- lua/packer/config/alpha.lua | 11 - lua/packer/config/autopairs.lua | 12 - lua/packer/config/autotag.lua | 11 - lua/packer/config/bisquits.lua | 44 --- lua/packer/config/blankline.lua | 11 - lua/packer/config/bracey.lua | 6 - lua/packer/config/bufferline.lua | 14 - lua/packer/config/cmp.lua | 24 -- lua/packer/config/colorizer.lua | 11 - lua/packer/config/comment.lua | 11 - lua/packer/config/crates.lua | 13 - lua/packer/config/cursorline.lua | 8 - lua/packer/config/escap.lua | 11 - lua/packer/config/formatter.lua | 11 - lua/packer/config/fugitive.lua | 8 - lua/packer/config/gitsigns.lua | 14 - lua/packer/config/hlslens.lua | 32 -- lua/packer/config/hop.lua | 13 - lua/packer/config/init.lua | 0 lua/packer/config/lspsaga.lua | 12 - lua/packer/config/markdown.lua | 6 - lua/packer/config/neoscroll.lua | 11 - lua/packer/config/noice.lua | 17 - lua/packer/config/numb.lua | 11 - lua/packer/config/packer.lua | 8 - lua/packer/config/plenary.lua | 8 - lua/packer/config/popup.lua | 8 - lua/packer/config/portal.lua | 15 - lua/packer/config/project.lua | 16 - lua/packer/config/rainbow.lua | 11 - lua/packer/config/regexplainer.lua | 15 - lua/packer/config/renamer.lua | 13 - lua/packer/config/rest.lua | 12 - lua/packer/config/rust.lua | 11 - lua/packer/config/snippy.lua | 21 -- lua/packer/config/spectre.lua | 11 - lua/packer/config/stablize.lua | 11 - lua/packer/config/telescope.lua | 6 - lua/packer/config/tree.lua | 12 - lua/packer/config/treesitter.lua | 12 - lua/packer/config/trouble.lua | 16 - lua/packer/config/twilight.lua | 11 - lua/packer/config/which-key.lua | 23 -- lua/packer/config/windline.lua | 12 - lua/packer/config/winshift.lua | 11 - lua/packer/loader.lua | 41 --- lua/packer/plugins.lua | 75 ----- lua/packer/settings/alpha.lua | 56 ---- lua/packer/settings/autopairs.lua | 42 --- lua/packer/settings/blankline.lua | 39 --- lua/packer/settings/bufferline.lua | 8 - lua/packer/settings/cmp.lua | 148 --------- lua/packer/settings/compe.lua | 98 ------ lua/packer/settings/escape.lua | 10 - lua/packer/settings/format.lua | 130 -------- lua/packer/settings/kommantary.lua | 1 - lua/packer/settings/luasnip.lua | 490 ----------------------------- lua/packer/settings/nvimtree.lua | 43 --- lua/packer/settings/rainbow.lua | 13 - lua/packer/settings/renamer.lua | 12 - lua/packer/settings/rest.lua | 21 -- lua/packer/settings/rust.lua | 39 --- lua/packer/settings/toggleterm.lua | 31 -- lua/packer/settings/tree.lua | 34 -- lua/packer/settings/treesitter.lua | 60 ---- lua/packer/settings/ts-comment.lua | 25 -- lua/packer/settings/which-key.lua | 272 ---------------- lua/packer/settings/windline.lua | 9 - lua/packer/settings/winshift.lua | 12 - 69 files changed, 2294 deletions(-) delete mode 100644 lua/packer/config/alpha.lua delete mode 100644 lua/packer/config/autopairs.lua delete mode 100644 lua/packer/config/autotag.lua delete mode 100644 lua/packer/config/bisquits.lua delete mode 100644 lua/packer/config/blankline.lua delete mode 100644 lua/packer/config/bracey.lua delete mode 100644 lua/packer/config/bufferline.lua delete mode 100644 lua/packer/config/cmp.lua delete mode 100644 lua/packer/config/colorizer.lua delete mode 100644 lua/packer/config/comment.lua delete mode 100644 lua/packer/config/crates.lua delete mode 100644 lua/packer/config/cursorline.lua delete mode 100644 lua/packer/config/escap.lua delete mode 100644 lua/packer/config/formatter.lua delete mode 100644 lua/packer/config/fugitive.lua delete mode 100644 lua/packer/config/gitsigns.lua delete mode 100644 lua/packer/config/hlslens.lua delete mode 100644 lua/packer/config/hop.lua delete mode 100644 lua/packer/config/init.lua delete mode 100644 lua/packer/config/lspsaga.lua delete mode 100644 lua/packer/config/markdown.lua delete mode 100644 lua/packer/config/neoscroll.lua delete mode 100644 lua/packer/config/noice.lua delete mode 100644 lua/packer/config/numb.lua delete mode 100644 lua/packer/config/packer.lua delete mode 100644 lua/packer/config/plenary.lua delete mode 100644 lua/packer/config/popup.lua delete mode 100644 lua/packer/config/portal.lua delete mode 100644 lua/packer/config/project.lua delete mode 100644 lua/packer/config/rainbow.lua delete mode 100644 lua/packer/config/regexplainer.lua delete mode 100644 lua/packer/config/renamer.lua delete mode 100644 lua/packer/config/rest.lua delete mode 100644 lua/packer/config/rust.lua delete mode 100644 lua/packer/config/snippy.lua delete mode 100644 lua/packer/config/spectre.lua delete mode 100644 lua/packer/config/stablize.lua delete mode 100644 lua/packer/config/telescope.lua delete mode 100644 lua/packer/config/tree.lua delete mode 100644 lua/packer/config/treesitter.lua delete mode 100644 lua/packer/config/trouble.lua delete mode 100644 lua/packer/config/twilight.lua delete mode 100644 lua/packer/config/which-key.lua delete mode 100644 lua/packer/config/windline.lua delete mode 100644 lua/packer/config/winshift.lua delete mode 100644 lua/packer/loader.lua delete mode 100644 lua/packer/plugins.lua delete mode 100644 lua/packer/settings/alpha.lua delete mode 100644 lua/packer/settings/autopairs.lua delete mode 100644 lua/packer/settings/blankline.lua delete mode 100644 lua/packer/settings/bufferline.lua delete mode 100644 lua/packer/settings/cmp.lua delete mode 100644 lua/packer/settings/compe.lua delete mode 100644 lua/packer/settings/escape.lua delete mode 100644 lua/packer/settings/format.lua delete mode 100644 lua/packer/settings/kommantary.lua delete mode 100644 lua/packer/settings/luasnip.lua delete mode 100644 lua/packer/settings/nvimtree.lua delete mode 100644 lua/packer/settings/rainbow.lua delete mode 100644 lua/packer/settings/renamer.lua delete mode 100644 lua/packer/settings/rest.lua delete mode 100644 lua/packer/settings/rust.lua delete mode 100644 lua/packer/settings/toggleterm.lua delete mode 100644 lua/packer/settings/tree.lua delete mode 100644 lua/packer/settings/treesitter.lua delete mode 100644 lua/packer/settings/ts-comment.lua delete mode 100644 lua/packer/settings/which-key.lua delete mode 100644 lua/packer/settings/windline.lua delete mode 100644 lua/packer/settings/winshift.lua diff --git a/lua/packer/config/alpha.lua b/lua/packer/config/alpha.lua deleted file mode 100644 index 0758d6a..0000000 --- a/lua/packer/config/alpha.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : a lua powered greeter like vim-startify / dashboard-nvim --- Link : https://github.com/goolord/alpha-nvim - -local M = { - "goolord/alpha-nvim", - config = function() - require("packer.settings.alpha") - end, -} - -return M diff --git a/lua/packer/config/autopairs.lua b/lua/packer/config/autopairs.lua deleted file mode 100644 index 5007121..0000000 --- a/lua/packer/config/autopairs.lua +++ /dev/null @@ -1,12 +0,0 @@ --- Description : A super powerful autopair plugin for Neovim that supports multiple characters. --- Link : https://github.com/windwp/nvim-autopairs - -local M = { - "windwp/nvim-autopairs", - after = "nvim-cmp", - config = function() - require("packer.settings.autopairs") - end, -} - -return M diff --git a/lua/packer/config/autotag.lua b/lua/packer/config/autotag.lua deleted file mode 100644 index e7e7e8c..0000000 --- a/lua/packer/config/autotag.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : Use treesitter to auto close and auto rename html tag --- Link : https://github.com/windwp/nvim-ts-autotag - -local M = { - "windwp/nvim-ts-autotag", - config = function() - require("nvim-ts-autotag").setup() - end, -} - -return M diff --git a/lua/packer/config/bisquits.lua b/lua/packer/config/bisquits.lua deleted file mode 100644 index ba92535..0000000 --- a/lua/packer/config/bisquits.lua +++ /dev/null @@ -1,44 +0,0 @@ --- Description : A neovim port of Assorted Biscuits. Ends up with more supported languages too. --- Link : https://github.com/code-biscuits/nvim-biscuits - -local M = { - "code-biscuits/nvim-biscuits", - - config = function() - require("nvim-biscuits").setup({ - ensure_installed = "maintained", - - default_config = { - max_length = 12, - min_distance = 5, - prefix_string = " 📎 ", - }, - language_config = { - html = { - prefix_string = " 🌐 ", - }, - javascript = { - prefix_string = " ✨ ", - max_length = 80, - }, - javascriptreact = { - prefix_string = " ✨ ", - max_length = 80, - }, - typescript = { - prefix_string = " ✨ ", - max_length = 80, - }, - typescriptreact = { - prefix_string = " ✨ ", - max_length = 80, - }, - }, - }) - end, - requires = { - { "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" }, - }, -} - -return M diff --git a/lua/packer/config/blankline.lua b/lua/packer/config/blankline.lua deleted file mode 100644 index 5384867..0000000 --- a/lua/packer/config/blankline.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : This plugin adds indentation guides to all lines (including empty lines). --- Link : https://github.com/lukas-reineke/indent-blankline.nvim - -local M = { - "lukas-reineke/indent-blankline.nvim", - config = function() - require("packer.settings.blankline") - end, -} - -return M diff --git a/lua/packer/config/bracey.lua b/lua/packer/config/bracey.lua deleted file mode 100644 index 760ad9e..0000000 --- a/lua/packer/config/bracey.lua +++ /dev/null @@ -1,6 +0,0 @@ --- Description : live edit html, css, and javascript in vim --- Link : https://github.com/turbio/bracey.vim - -local M = { "turbio/bracey.vim", run = "npm install --prefix server" } - -return M diff --git a/lua/packer/config/bufferline.lua b/lua/packer/config/bufferline.lua deleted file mode 100644 index 6a14c19..0000000 --- a/lua/packer/config/bufferline.lua +++ /dev/null @@ -1,14 +0,0 @@ --- Description : A snazzy 💅 buffer line (with tabpage integration) for Neovim built using lua. --- Link : https://github.com/akinsho/nvim-bufferline.lua - -local M = { - "akinsho/nvim-bufferline.lua", - requires = "kyazdani42/nvim-web-devicons", - config = function() - require("bufferline").setup( - require("packer.settings.bufferline") - ) - end, -} - -return M diff --git a/lua/packer/config/cmp.lua b/lua/packer/config/cmp.lua deleted file mode 100644 index e98fa10..0000000 --- a/lua/packer/config/cmp.lua +++ /dev/null @@ -1,24 +0,0 @@ --- Description : A completion engine plugin for neovim written in Lua. Completion sources are installed from external repositories and "sourced". --- Link : https://github.com/hrsh7th/nvim-cmp - -local M = { - "hrsh7th/nvim-cmp", - requires = { - "hrsh7th/cmp-nvim-lsp", - "hrsh7th/cmp-buffer", - "hrsh7th/cmp-path", - "hrsh7th/cmp-cmdline", - -- "L3MON4D3/LuaSnip", - -- "saadparwaiz1/cmp_luasnip", - "dcampos/nvim-snippy", - "dcampos/cmp-snippy", - "hrsh7th/cmp-emoji", - }, - - -- event = "InsertEnter", - config = function() - require("packer.settings.cmp") - end, -} - -return M diff --git a/lua/packer/config/colorizer.lua b/lua/packer/config/colorizer.lua deleted file mode 100644 index 892bc5a..0000000 --- a/lua/packer/config/colorizer.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : A high-performance color highlighter for Neovim which has no external dependencies! Written in performant Luajit. --- Link : https://github.com/norcalli/nvim-colorizer.lua - -local M = { - "norcalli/nvim-colorizer.lua", - config = function() - require("colorizer").setup() - end, -} - -return M diff --git a/lua/packer/config/comment.lua b/lua/packer/config/comment.lua deleted file mode 100644 index 85882c7..0000000 --- a/lua/packer/config/comment.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : 🧠 💪 // Smart and powerful comment plugin for neovim. Supports treesitter, dot repeat, left-right/up-down motions, hooks, and more --- Link : https://github.com/numToStr/Comment.nvim - -local M = { - "numToStr/Comment.nvim", - config = function() - require("packer.settings.ts-comment") - end, -} - -return M diff --git a/lua/packer/config/crates.lua b/lua/packer/config/crates.lua deleted file mode 100644 index b6dce40..0000000 --- a/lua/packer/config/crates.lua +++ /dev/null @@ -1,13 +0,0 @@ --- Description : A neovim plugin that helps managing crates.io dependencies --- Link : https://github.com/saecki/crates.nvim - -local M = { - "saecki/crates.nvim", - event = { "BufRead Cargo.toml" }, - requires = { { "nvim-lua/plenary.nvim" } }, - config = function() - require("crates").setup() - end, -} - -return M diff --git a/lua/packer/config/cursorline.lua b/lua/packer/config/cursorline.lua deleted file mode 100644 index e5210e3..0000000 --- a/lua/packer/config/cursorline.lua +++ /dev/null @@ -1,8 +0,0 @@ --- Description : A plugin for neovim that highlights cursor words and lines --- Link : https://github.com/yamatsum/nvim-cursorline - -local M = { - "yamatsum/nvim-cursorline", -} - -return M diff --git a/lua/packer/config/escap.lua b/lua/packer/config/escap.lua deleted file mode 100644 index 6a9484f..0000000 --- a/lua/packer/config/escap.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : Escape from insert mode without delay when typing --- Link : https://github.com/max397574/better-escape.nvim - -local M = { - "max397574/better-escape.nvim", - config = function() - require("packer.settings.escape") - end, -} - -return M diff --git a/lua/packer/config/formatter.lua b/lua/packer/config/formatter.lua deleted file mode 100644 index 7fe4804..0000000 --- a/lua/packer/config/formatter.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : A format runner for Neovim. --- Link : https://github.com/mhartington/formatter.nvim - -local M = { - "mhartington/formatter.nvim", - config = function() - require("packer.settings.format") - end, -} - -return M diff --git a/lua/packer/config/fugitive.lua b/lua/packer/config/fugitive.lua deleted file mode 100644 index 1dfc29d..0000000 --- a/lua/packer/config/fugitive.lua +++ /dev/null @@ -1,8 +0,0 @@ --- Description : fugitive.vim: A Git wrapper so awesome, it should be illegal --- Link : https://github.com/tpope/vim-fugitive - -local M = { - "tpope/vim-fugitive", -} - -return M diff --git a/lua/packer/config/gitsigns.lua b/lua/packer/config/gitsigns.lua deleted file mode 100644 index 74bf304..0000000 --- a/lua/packer/config/gitsigns.lua +++ /dev/null @@ -1,14 +0,0 @@ --- Description : Super fast git decorations implemented purely in lua/teal. --- Link : https://github.com/lewis6991/gitsigns.nvim - -local M = { - "lewis6991/gitsigns.nvim", - requires = { - "nvim-lua/plenary.nvim", - }, - config = function() - require("gitsigns").setup() - end, -} - -return M diff --git a/lua/packer/config/hlslens.lua b/lua/packer/config/hlslens.lua deleted file mode 100644 index aa1567a..0000000 --- a/lua/packer/config/hlslens.lua +++ /dev/null @@ -1,32 +0,0 @@ --- Description : nvim-hlslens helps you better glance at matched information, seamlessly jump between matched instances. --- Link : https://github.com/kevinhwang91/nvim-hlslens - -local M = { - "kevinhwang91/nvim-hlslens", - config = function() - require("hlslens").setup() - - local kopts = { noremap = true, silent = true } - - vim.api.nvim_set_keymap( - "n", - "n", - [[execute('normal! ' . v:count1 . 'n')lua require('hlslens').start()]], - kopts - ) - vim.api.nvim_set_keymap( - "n", - "N", - [[execute('normal! ' . v:count1 . 'N')lua require('hlslens').start()]], - kopts - ) - vim.api.nvim_set_keymap("n", "*", [[*lua require('hlslens').start()]], kopts) - vim.api.nvim_set_keymap("n", "#", [[#lua require('hlslens').start()]], kopts) - vim.api.nvim_set_keymap("n", "g*", [[g*lua require('hlslens').start()]], kopts) - vim.api.nvim_set_keymap("n", "g#", [[g#lua require('hlslens').start()]], kopts) - - vim.api.nvim_set_keymap("n", "l", ":noh", kopts) - end, -} - -return M diff --git a/lua/packer/config/hop.lua b/lua/packer/config/hop.lua deleted file mode 100644 index 523c8c7..0000000 --- a/lua/packer/config/hop.lua +++ /dev/null @@ -1,13 +0,0 @@ --- Description : Neovim motions on speed! --- Link : https://github.com/phaazon/hop.nvim - -local M = { - "phaazon/hop.nvim", - branch = "v1", -- optional but strongly recommended - config = function() - -- you can configure Hop the way you like here; see :h hop-config - require("hop").setup({ keys = "etovxqpdygfblzhckisuran" }) - end, -} - -return M diff --git a/lua/packer/config/init.lua b/lua/packer/config/init.lua deleted file mode 100644 index e69de29..0000000 diff --git a/lua/packer/config/lspsaga.lua b/lua/packer/config/lspsaga.lua deleted file mode 100644 index 58cefdb..0000000 --- a/lua/packer/config/lspsaga.lua +++ /dev/null @@ -1,12 +0,0 @@ --- Description : A light-weight lsp plugin based on neovim's built-in lsp with a highly performant UI. --- Link : https://github.com/glepnir/lspsaga.nvim - -local M = { - "glepnir/lspsaga.nvim", - config = function() - -- you can configure Hop the way you like here; see :h hop-config - require("lspsaga").init_lsp_saga() - end, -} - -return M diff --git a/lua/packer/config/markdown.lua b/lua/packer/config/markdown.lua deleted file mode 100644 index 96411de..0000000 --- a/lua/packer/config/markdown.lua +++ /dev/null @@ -1,6 +0,0 @@ --- Description : markdown preview plugin for (neo)vim --- Link : https://github.com/iamcco/markdown-preview.nvim - -local M = { "iamcco/markdown-preview.nvim", run = "cd app && npm install" } - -return M diff --git a/lua/packer/config/neoscroll.lua b/lua/packer/config/neoscroll.lua deleted file mode 100644 index 8551264..0000000 --- a/lua/packer/config/neoscroll.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : Smooth scrolling neovim plugin written in lua --- Link : https://github.com/karb94/neoscroll.nvim - -local M = { - "karb94/neoscroll.nvim", - config = function() - require("neoscroll").setup() - end, -} - -return M diff --git a/lua/packer/config/noice.lua b/lua/packer/config/noice.lua deleted file mode 100644 index 19b2797..0000000 --- a/lua/packer/config/noice.lua +++ /dev/null @@ -1,17 +0,0 @@ --- Description : 💥 Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu. --- Link : https://github.com/folke/noice.nvim - -local M = { - "folke/noice.nvim", - event = "VimEnter", - config = function() - require("noice").setup() - end, - requires = { - -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries - "MunifTanjim/nui.nvim", - "rcarriga/nvim-notify", - }, -} - -return M diff --git a/lua/packer/config/numb.lua b/lua/packer/config/numb.lua deleted file mode 100644 index bc196ba..0000000 --- a/lua/packer/config/numb.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : Peek lines just when you intend --- Link : https://github.com/nacro90/numb.nvim - -local M = { - "nacro90/numb.nvim", - config = function() - require("numb").setup() - end, -} - -return M diff --git a/lua/packer/config/packer.lua b/lua/packer/config/packer.lua deleted file mode 100644 index f76dde4..0000000 --- a/lua/packer/config/packer.lua +++ /dev/null @@ -1,8 +0,0 @@ --- Description : A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config --- Link : https://github.com/wbthomason/packer.nvim - -local M = { - "wbthomason/packer.nvim", -} - -return M diff --git a/lua/packer/config/plenary.lua b/lua/packer/config/plenary.lua deleted file mode 100644 index c1e2aef..0000000 --- a/lua/packer/config/plenary.lua +++ /dev/null @@ -1,8 +0,0 @@ --- Description : plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice. --- Link : https://github.com/nvim-lua/plenary.nvim - -local M = { - "nvim-lua/plenary.nvim", -} - -return M diff --git a/lua/packer/config/popup.lua b/lua/packer/config/popup.lua deleted file mode 100644 index 66c8915..0000000 --- a/lua/packer/config/popup.lua +++ /dev/null @@ -1,8 +0,0 @@ --- Description : [WIP] An implementation of the Popup API from vim in Neovim. Hope to upstream when complete --- Link : https://github.com/nvim-lua/popup.nvim - -local M = { - "nvim-lua/popup.nvim", -} - -return M diff --git a/lua/packer/config/portal.lua b/lua/packer/config/portal.lua deleted file mode 100644 index 23c0bab..0000000 --- a/lua/packer/config/portal.lua +++ /dev/null @@ -1,15 +0,0 @@ --- Description : Look at you, sailing through the [jumplist] majestically, like an eagle... piloting a blimp. --- Link : https://github.com/cbochs/portal.nvim - -local M = { - "cbochs/portal.nvim", - config = function() - require("portal").setup({ - -- Your configuration goes here - -- Leave empty to use the default configuration - -- Please see the Configuration section below for more information - }) - end, -} - -return M diff --git a/lua/packer/config/project.lua b/lua/packer/config/project.lua deleted file mode 100644 index b3299a2..0000000 --- a/lua/packer/config/project.lua +++ /dev/null @@ -1,16 +0,0 @@ --- Description : project.nvim is an all in one neovim plugin written in lua that provides superior project management. --- Link : https://github.com/ahmedkhalf/project.nvim - -local M = { - "ahmedkhalf/project.nvim", - config = function() - require("project_nvim").setup({ - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - require("telescope").load_extension("projects"), - }) - end, -} - -return M diff --git a/lua/packer/config/rainbow.lua b/lua/packer/config/rainbow.lua deleted file mode 100644 index 24662b2..0000000 --- a/lua/packer/config/rainbow.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : Rainbow parentheses for neovim using tree-sitter. This is a module for nvim-treesitter, not a standalone plugin. It requires and is configured via nvim-treesitter --- Link : https://github.com/p00f/nvim-ts-rainbow - -local M = { - "p00f/nvim-ts-rainbow", - config = function() - require("packer.settings.rainbow") - end, -} - -return M diff --git a/lua/packer/config/regexplainer.lua b/lua/packer/config/regexplainer.lua deleted file mode 100644 index 8b3321a..0000000 --- a/lua/packer/config/regexplainer.lua +++ /dev/null @@ -1,15 +0,0 @@ --- Description : Describe the regular expression under the cursor. --- Link : https://github.com/bennypowers/nvim-regexplainer - -local M = { - "bennypowers/nvim-regexplainer", - requires = { - "nvim-treesitter/nvim-treesitter", - "MunifTanjim/nui.nvim", - }, - config = function() - require("regexplainer").setup({}) - end, -} - -return M diff --git a/lua/packer/config/renamer.lua b/lua/packer/config/renamer.lua deleted file mode 100644 index d2f0120..0000000 --- a/lua/packer/config/renamer.lua +++ /dev/null @@ -1,13 +0,0 @@ --- Description : VS Code-like renaming UI for Neovim, writen in Lua. --- Link : https://github.com/filipdutescu/renamer.nvim - -local M = { - "filipdutescu/renamer.nvim", - branch = "master", - requires = { { "nvim-lua/plenary.nvim" } }, - config = function() - require("packer.settings.renamer") - end, -} - -return M diff --git a/lua/packer/config/rest.lua b/lua/packer/config/rest.lua deleted file mode 100644 index 8ce3107..0000000 --- a/lua/packer/config/rest.lua +++ /dev/null @@ -1,12 +0,0 @@ --- Description : A fast Neovim http client written in Lua --- Link : https://github.com/NTBBloodbath/rest.nvim - -local M = { - "NTBBloodbath/rest.nvim", - requires = { "nvim-lua/plenary.nvim" }, - config = function() - require("packer.settings.rest") - end, -} - -return M diff --git a/lua/packer/config/rust.lua b/lua/packer/config/rust.lua deleted file mode 100644 index d9295e3..0000000 --- a/lua/packer/config/rust.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : Tools for better development in rust using neovim's builtin lsp --- Link : https://github.com/simrat39/rust-tools.nvim - -local M = { - "simrat39/rust-tools.nvim", - config = function() - require("packer.settings.rust") - end, -} - -return M diff --git a/lua/packer/config/snippy.lua b/lua/packer/config/snippy.lua deleted file mode 100644 index 2c0da34..0000000 --- a/lua/packer/config/snippy.lua +++ /dev/null @@ -1,21 +0,0 @@ --- Description : A snippets plugin for Neovim 0.5.0+ written in Lua. --- Link : https://github.com/dcampos/nvim-snippy - -local M = { - "dcampos/nvim-snippy", - config = function() - require("snippy").setup({ - mappings = { - is = { - [""] = "expand_or_advance", - [""] = "previous", - }, - nx = { - ["x"] = "cut_text", - }, - }, - }) - end, -} - -return M diff --git a/lua/packer/config/spectre.lua b/lua/packer/config/spectre.lua deleted file mode 100644 index a3193fa..0000000 --- a/lua/packer/config/spectre.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : Find the enemy and replace them with dark power. --- Link : https://github.com/windwp/nvim-spectre - -local M = { - "windwp/nvim-spectre", - config = function() - require("spectre").setup() - end, -} - -return M diff --git a/lua/packer/config/stablize.lua b/lua/packer/config/stablize.lua deleted file mode 100644 index 2ba419e..0000000 --- a/lua/packer/config/stablize.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : Neovim plugin to stabilize window open/close events. --- Link : https://github.com/luukvbaal/stabilize.nvim - -local M = { - "luukvbaal/stabilize.nvim", - config = function() - require("stabilize").setup() - end, -} - -return M diff --git a/lua/packer/config/telescope.lua b/lua/packer/config/telescope.lua deleted file mode 100644 index 478a653..0000000 --- a/lua/packer/config/telescope.lua +++ /dev/null @@ -1,6 +0,0 @@ --- Description : Find, Filter, Preview, Pick. All lua, all the time. --- Link : https://github.com/nvim-telescope/telescope.nvim - -local M = { "nvim-telescope/telescope.nvim", requires = { { "nvim-lua/popup.nvim" }, { "nvim-lua/plenary.nvim" } } } - -return M diff --git a/lua/packer/config/tree.lua b/lua/packer/config/tree.lua deleted file mode 100644 index 158f6b7..0000000 --- a/lua/packer/config/tree.lua +++ /dev/null @@ -1,12 +0,0 @@ --- Description : A file explorer tree for neovim written in lua --- Link : https://github.com/kyazdani42/nvim-tree.lua - -local M = { - "kyazdani42/nvim-tree.lua", - requires = "kyazdani42/nvim-web-devicons", - config = function() - require("packer.settings.tree") - end, -} - -return M diff --git a/lua/packer/config/treesitter.lua b/lua/packer/config/treesitter.lua deleted file mode 100644 index 0287093..0000000 --- a/lua/packer/config/treesitter.lua +++ /dev/null @@ -1,12 +0,0 @@ --- Description : Nvim Treesitter configurations and abstraction layer --- Link : https://github.com/nvim-treesitter/nvim-treesitter - -local M = { - "nvim-treesitter/nvim-treesitter", - run = ":TSUpdate", - config = function() - require("packer.settings.treesitter") - end, -} - -return M diff --git a/lua/packer/config/trouble.lua b/lua/packer/config/trouble.lua deleted file mode 100644 index 7fa5aa2..0000000 --- a/lua/packer/config/trouble.lua +++ /dev/null @@ -1,16 +0,0 @@ --- Description : 🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing. --- Link : https://github.com/folke/trouble.nvim - -local M = { - "folke/trouble.nvim", - requires = "kyazdani42/nvim-web-devicons", - config = function() - require("trouble").setup({ - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - }) - end, -} - -return M diff --git a/lua/packer/config/twilight.lua b/lua/packer/config/twilight.lua deleted file mode 100644 index a7a79d0..0000000 --- a/lua/packer/config/twilight.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : 🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter. --- Link : https://github.com/folke/twilight.nvim - -local M = { - "folke/twilight.nvim", - config = function() - require("twilight").setup({}) - end, -} - -return M diff --git a/lua/packer/config/which-key.lua b/lua/packer/config/which-key.lua deleted file mode 100644 index fddeaa7..0000000 --- a/lua/packer/config/which-key.lua +++ /dev/null @@ -1,23 +0,0 @@ --- Description : 💥 Create key bindings that stick. WhichKey is a lua plugin for Neovim 0.5 that displays a popup with possible keybindings of the command you started typing. --- Link : https://github.com/folke/which-key.nvim - -local M = { - "folke/which-key.nvim", - config = function() - local myWKConfig = require("packer.settings.which-key") - local wk = require("which-key") - wk.setup({ - myWKConfig.settings, - }) - local opts = myWKConfig.normalOpts - local vopts = myWKConfig.visualOpts - - local mappings = myWKConfig.mappings - local vmappings = myWKConfig.vmappings - - wk.register(mappings, opts) - wk.register(vmappings, vopts) - end, -} - -return M diff --git a/lua/packer/config/windline.lua b/lua/packer/config/windline.lua deleted file mode 100644 index 249b76a..0000000 --- a/lua/packer/config/windline.lua +++ /dev/null @@ -1,12 +0,0 @@ --- Description : Animation statusline, floating window statusline. Use lua + luv make some wind --- Link : https://github.com/windwp/windline.nvim - -local M = { - "windwp/windline.nvim", - config = function() - require("packer.settings.windline") - -- require("windline").add_status(require("spectre.state_utils").status_line()) - end, -} - -return M diff --git a/lua/packer/config/winshift.lua b/lua/packer/config/winshift.lua deleted file mode 100644 index 2beeb67..0000000 --- a/lua/packer/config/winshift.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Description : Rearrange your windows with ease. --- Link : https://github.com/sindrets/winshift.nvim - -local M = { - "sindrets/winshift.nvim", - config = function() - require("packer.settings.winshift") - end, -} - -return M diff --git a/lua/packer/loader.lua b/lua/packer/loader.lua deleted file mode 100644 index c91aeb3..0000000 --- a/lua/packer/loader.lua +++ /dev/null @@ -1,41 +0,0 @@ -local fn = vim.fn - --- Automatically install packer -local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" -if fn.empty(fn.glob(install_path)) > 0 then - PACKER_BOOTSTRAP = fn.system({ - "git", - "clone", - "--depth", - "1", - "https://github.com/wbthomason/packer.nvim", - install_path, - }) - print("Installing packer close and reopen Neovim...") - vim.cmd([[packadd packer.nvim]]) -end - --- Autocommand that reloads neovim whenever you save the plugins.lua file -vim.cmd([[ - augroup packer_user_config - autocmd! - autocmd BufWritePost plugins.lua source | PackerSync - augroup end -]]) - --- Use a protected call so we don't error out on first use -local status_ok, packer = pcall(require, "packer") -if not status_ok then - return -end - --- Have packer use a popup window -packer.init({ - display = { - open_fn = function() - return require("packer.util").float({ border = "rounded" }) - end, - }, -}) - -return packer diff --git a/lua/packer/plugins.lua b/lua/packer/plugins.lua deleted file mode 100644 index 3ae16fe..0000000 --- a/lua/packer/plugins.lua +++ /dev/null @@ -1,75 +0,0 @@ -local packer = require("packer.loader") - -return packer.startup(function(use) - -- TODO should put every plugin config inside packer.config file and for every one I should put readme on it - -- fixed until popup plugin - use(require("packer.config.packer")) - use(require("packer.config.plenary")) - use(require("packer.config.popup")) - use(require("packer.config.fugitive")) - use(require("packer.config.cursorline")) - use(require("packer.config.bracey")) - use(require("packer.config.markdown")) - use(require("packer.config.renamer")) - use(require("packer.config.autotag")) - use(require("packer.config.spectre")) - use({ "tpope/vim-surround" }) - use(require("packer.config.regexplainer")) - use(require("packer.config.hop")) - use(require("packer.config.rainbow")) - use(require("packer.config.alpha")) - use(require("packer.config.blankline")) - use(require("packer.config.winshift")) - use(require("packer.config.telescope")) - use({ "folke/tokyonight.nvim" }) - use(require("packer.config.windline")) - use(require("packer.config.gitsigns")) - use(require("packer.config.treesitter")) - use("nvim-treesitter/nvim-treesitter-textobjects") - use("romgrk/nvim-treesitter-context") - use(require("packer.config.lspsaga")) - use(require("packer.config.trouble")) - use("neovim/nvim-lspconfig") - use("hrsh7th/cmp-nvim-lsp") - use("hrsh7th/cmp-buffer") - use("hrsh7th/cmp-path") - use("hrsh7th/cmp-cmdline") - use(require("packer.config.snippy")) - use(require("packer.config.cmp")) - use("dcampos/cmp-snippy") - use("tversteeg/registers.nvim") - use(require("packer.config.autopairs")) - use({ "weilbith/nvim-code-action-menu", cmd = "CodeActionMenu" }) - use(require("packer.config.bufferline")) - use(require("packer.config.tree")) - use(require("packer.config.project")) - use("nathom/filetype.nvim") - use(require("packer.config.twilight")) - use(require("packer.config.formatter")) - use(require("packer.config.which-key")) - use("JoosepAlviste/nvim-ts-context-commentstring") - use(require("packer.config.comment")) - use(require("packer.config.stablize")) - use({ "ellisonleao/glow.nvim" }) - use(require("packer.config.rest")) - use(require("packer.config.hlslens")) - use(require("packer.config.rust")) - use(require("packer.config.crates")) - use({ "mfussenegger/nvim-dap" }) - use(require("packer.config.colorizer")) - use({ "haringsrob/nvim_context_vt" }) - use({ "pgdouyon/vim-yin-yang" }) - use(require("packer.config.escap")) - use(require("packer.config.numb")) - use({ "github/copilot.vim" }) - use(require("packer.config.bisquits")) - -- use(require("packer.config.neoscroll")) - use(require("packer.config.noice")) - use(require("packer.config.portal")) - - -- Automatically set up your configuration after cloning packer.nvim - -- Put this at the end after all plugins - if PACKER_BOOTSTRAP then - require("packer").sync() - end -end) diff --git a/lua/packer/settings/alpha.lua b/lua/packer/settings/alpha.lua deleted file mode 100644 index 72f8d92..0000000 --- a/lua/packer/settings/alpha.lua +++ /dev/null @@ -1,56 +0,0 @@ -local alpha = require("alpha") -local dashboard = require("alpha.themes.dashboard") - --- Set header -dashboard.section.header.val = { - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⣿⣿⢳⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢧⣿⡿⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⣿⡏⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠸⣿⡇⢹⣿⣿⣿⣿⣿⣿⣿⣿⢻⢿⣿⡿⣿⣿⡇⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠸⣇⠀⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⠀⢻⡇⠈⢿⣿⣿⣿⣿⣿⣿⣿⣬⣬⣾⠃⣿⣿⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠹⣆⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠀⢻⡄⠈⢿⣿⣿⣿⣿⣿⣿⡇⣿⣿⠀⢿⣿⡀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆⠀⢹⡆⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀⠈⢷⡀⠈⢿⣿⣿⣿⣿⣿⠀⣿⣿⡀⠈⢿⣷⡀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣛⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣘⣉⣸⣿⣿⡄⠀⢿⡄⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢻⢛⣿⣿⣷⡀⠈⣷⡀⠘⣿⣿⣿⣿⣿⠀⠘⣿⣷⡀⠈⢿⣷⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⡏⣾⡿⠛⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀⠘⣷⡀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⣫⣭⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣧⠀⢹⣧⠀⢹⣿⣿⣿⣿⣧⠀⠘⣿⣷⡀⠈⢿⣧⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢻⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣧⠙⢀⣤⣤⡀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢿⣿⣿⣿⣧⠀⣿⣇⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⡾⠟⠋⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢿⣿⣿⣿⡆⠈⣿⡆⢸⣿⣿⣿⠿⣿⣧⠀⠹⣿⣷⠀⠘⣿⡆⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠸⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⡏⢀⠀⠈⠉⠀⢸⣿⣿⡿⠟⢿⣿⣿⣿⣿⡿⠛⠉⠉⠉⠛⠛⠿⢿⣿⣿⣿⣿⣿⠀⠀⠙⣿⣿⣿⠀⣿⣿⠰⢿⣿⣿⣿⡏⢻⣿⣿⣿⣿⣿⡿⠀⠠⣴⣦⡀⠈⣿⣿⣿⠿⠛⠉⠉⠛⠛⠻⠿⣿⣿⣿⣿⣿⡏⠀⠀⢻⣿⣿⣷⠀⣿⡇⣸⣿⡟⠁⡀⣸⣿⣇⠀⢻⣿⣇⠀⢻⣿⠀⡙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠿⠿⣷⡀⢻⣿⣿⣿", - "⣿⣿⡟⠙⠿⠿⠿⠟⠁⣾⣿⣷⡆⠘⠛⠛⠉⢀⣀⢠⣿⣿⣿⢋⣠⣤⣤⣤⣤⣄⡀⠀⠀⠈⠉⠙⠛⠛⠳⢄⠀⠻⠿⠛⠁⢟⡅⣾⣆⣿⣿⣿⣅⠀⠻⠿⣿⠿⠋⣰⣄⠀⠀⠉⠁⣰⣿⡟⢁⣠⣤⣤⣤⣤⣀⡀⠀⠀⠈⠉⠛⠛⠛⠷⡀⠀⠿⠿⠋⢰⣿⢧⣿⠏⣠⣾⡇⣿⣿⣿⡄⠈⢿⣿⠀⢸⣿⠀⣿⢸⠟⠉⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠋⠁⠀⢀⣀⣀⡀⢹⣧⠀⢿⣿⣿", - "⣿⣿⣿⣦⣄⣀⣀⣠⣼⣿⣿⣿⣧⣄⣠⣴⠾⣿⣇⠘⠿⣿⣿⣿⡿⠿⠿⠟⠛⠋⠁⠀⣀⣀⣀⣠⣀⣀⣰⡿⠀⣤⣤⣴⢣⢟⣾⡿⠋⠙⠻⣿⣿⡄⢀⣀⣀⣠⣴⣿⣿⣿⣶⡆⠰⢿⣿⣴⣿⣿⠿⠿⠟⠛⠋⠁⠀⣀⣀⣀⣀⣀⣀⣼⡟⢠⣤⣤⣶⣿⢫⣿⠏⣰⣿⣿⡀⣿⣿⣿⣷⠀⡀⠀⢀⣾⡿⣼⡟⠀⢠⣤⡀⠈⠻⣿⣿⣿⣿⣿⣿⣿⠿⠟⠋⠉⠀⣀⣠⣴⣶⣿⣿⣿⣿⣿⢸⣿⠆⣾⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣄⠀⣠⣿⣄⠀⠀⠀⠀⠀⠀⢀⣀⣠⣴⣾⣿⣿⣿⣿⣿⣿⡿⠋⢀⣼⣿⣿⡏⣡⣾⣿⣿⣦⣤⣾⣿⡿⢃⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⢀⣀⣤⣴⣾⣿⣿⣿⣿⣿⣿⠿⠋⢠⣾⣿⣿⣿⣱⠟⢃⣴⣿⣿⣿⣇⠈⠉⠉⠁⢠⣿⣿⣿⠟⣽⠟⢰⡀⠀⠈⠁⢠⣄⡀⠉⠉⠉⠉⠁⠀⣀⣠⣤⣶⣿⣿⣿⣿⣿⡋⠀⢙⣿⠏⠈⢁⣴⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡋⠀⠉⣻⣿⣿⣿⣿⣿⣿⣿⣷⣽⣻⠿⢿⣿⣿⠿⠟⠋⠁⣀⣴⣿⣿⣿⣿⡇⠹⣿⣿⣿⣿⡿⠟⠋⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣮⣟⡿⠿⣿⣿⣿⠿⠟⠋⠁⣠⣴⣿⣿⣿⣿⣿⣶⣾⣿⣿⣿⣿⣿⣿⣷⣶⣶⡘⠿⠿⠿⠏⠞⢁⣠⣿⣿⣷⣶⣤⣾⣿⣿⣿⣶⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣦⣶⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣦⣤⣀⣤⣶⣾⣿⣿⣿⣿⣿⣿⣷⡀⠀⠈⠁⠀⠀⣠⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣤⣀⣀⣤⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", - "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", -} - --- Set menu -dashboard.section.buttons.val = { - dashboard.button("f", " 🎄 Find file", ":Telescope find_files"), - dashboard.button("p", " 🌳 Projects", ":Telescope projects"), - dashboard.button("r", " 🚀 Recent", ":Telescope oldfiles"), - dashboard.button("s", " 🔬 Settings", ":e $MYVIMRC | :cd %:p:h | split . | wincmd k | pwd"), - dashboard.button("q", " 🏓 Quit NVIM", ":qa"), -} - --- Set footer --- NOTE: This is currently a feature in my fork of alpha-nvim (opened PR #21, will update snippet if added to main) --- To see test this yourself, add the function as a dependecy in packer and uncomment the footer lines --- ```init.lua --- return require('packer').startup(function() --- use 'wbthomason/packer.nvim' --- use { --- 'goolord/alpha-nvim', branch = 'feature/startify-fortune', --- requires = {'BlakeJC94/alpha-nvim-fortune'}, --- config = function() require("config.alpha") end --- } --- end) --- ``` --- local fortune = require("alpha.fortune") --- dashboard.section.footer.val = fortune() - --- Send config to alpha -alpha.setup(dashboard.opts) - --- Disable folding on alpha buffer -vim.cmd([[ - autocmd FileType alpha setlocal nofoldenable -]]) diff --git a/lua/packer/settings/autopairs.lua b/lua/packer/settings/autopairs.lua deleted file mode 100644 index 10760b7..0000000 --- a/lua/packer/settings/autopairs.lua +++ /dev/null @@ -1,42 +0,0 @@ -local remap = vim.api.nvim_set_keymap -local npairs = require("nvim-autopairs") -local Rule = require("nvim-autopairs.rule") - --- skip it, if you use another global object -_G.MUtils = {} - -vim.g.completion_confirm_key = "" -MUtils.completion_confirm = function() - if vim.fn.pumvisible() ~= 0 then - if vim.fn.complete_info()["selected"] ~= -1 then - return vim.fn["compe#confirm"](npairs.esc("")) - else - return npairs.esc("") - end - else - return npairs.autopairs_cr() - end -end - -remap("i", "", "v:lua.MUtils.completion_confirm()", { expr = true, noremap = true }) - -npairs.setup({ - check_ts = true, - ts_config = { - lua = { "string" }, -- it will not add pair on that treesitter node - javascript = { "template_string" }, - java = false, -- don't check treesitter on java - }, -}) - --- require("nvim-treesitter.configs").setup({ --- autopairs = { enable = true }, --- }) - -local ts_conds = require("nvim-autopairs.ts-conds") - --- press % => %% is only inside comment or string -npairs.add_rules({ - Rule("%", "%", "lua"):with_pair(ts_conds.is_ts_node({ "string", "comment" })), - Rule("$", "$", "lua"):with_pair(ts_conds.is_not_ts_node({ "function" })), -}) diff --git a/lua/packer/settings/blankline.lua b/lua/packer/settings/blankline.lua deleted file mode 100644 index 408cdfd..0000000 --- a/lua/packer/settings/blankline.lua +++ /dev/null @@ -1,39 +0,0 @@ --- vim.opt.termguicolors = true -vim.cmd([[highlight IndentHighlightListBlank1 guifg=#E06C75 gui=nocombine]]) -vim.cmd([[highlight IndentHighlightListBlank2 guifg=#E5C07B gui=nocombine]]) -vim.cmd([[highlight IndentHighlightListBlank3 guifg=#98C379 gui=nocombine]]) -vim.cmd([[highlight IndentHighlightListBlank4 guifg=#56B6C2 gui=nocombine]]) -vim.cmd([[highlight IndentHighlightListBlank5 guifg=#61AFEF gui=nocombine]]) -vim.cmd([[highlight IndentHighlightListBlank6 guifg=#C678DD gui=nocombine]]) - -vim.opt.termguicolors = true -vim.cmd([[highlight IndentBlanklineIndent1 guibg=#291d29 gui=nocombine]]) -vim.cmd([[highlight IndentBlanklineIndent2 guibg=#1f2b28 gui=nocombine]]) -vim.cmd([[highlight IndentBlanklineIndent3 guibg=#2f2a3b gui=nocombine]]) -vim.cmd([[highlight IndentBlanklineIndent4 guibg=#262933 gui=nocombine]]) - -vim.opt.list = true -vim.opt.listchars:append("space:⋅") -vim.opt.listchars:append("eol:↴") - -require("indent_blankline").setup({ - space_char_blankline = " ", - show_trailing_blankline_indent = true, - show_current_context = true, - show_current_context_start = true, - char_highlight_list = { - "IndentHighlightListBlank1", - "IndentHighlightListBlank2", - "IndentHighlightListBlank3", - "IndentHighlightListBlank4", - "IndentHighlightListBlank5", - "IndentHighlightListBlank6", - }, - - space_char_highlight_list = { - "IndentBlanklineIndent1", - "IndentBlanklineIndent2", - "IndentBlanklineIndent3", - "IndentBlanklineIndent4", - }, -}) diff --git a/lua/packer/settings/bufferline.lua b/lua/packer/settings/bufferline.lua deleted file mode 100644 index 829ccfb..0000000 --- a/lua/packer/settings/bufferline.lua +++ /dev/null @@ -1,8 +0,0 @@ -local M = { - options = { - numbers = "both", - number_style = "superscript", -- buffer_id at index 1, ordinal at index 2 - }, -} - -return M diff --git a/lua/packer/settings/cmp.lua b/lua/packer/settings/cmp.lua deleted file mode 100644 index c02f1e4..0000000 --- a/lua/packer/settings/cmp.lua +++ /dev/null @@ -1,148 +0,0 @@ -local has_words_before = function() - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil -end - --- local luasnip = require("luasnip") -local cmp_status_ok, cmp = pcall(require, "cmp") -if not cmp_status_ok then - return -end - -local snippy_status_ok, snippy = pcall(require, "snippy") -if not snippy_status_ok then - return -end - -local kind_icons = { - Text = "", - Method = "m", - Function = "", - Constructor = "", - Field = "", - Variable = "", - Class = "", - Interface = "", - Module = "", - Property = "", - Unit = "", - Value = "", - Enum = "", - Keyword = "", - Snippet = "", - Color = "", - File = "", - Reference = "", - Folder = "", - EnumMember = "", - Constant = "", - Struct = "", - Event = "", - Operator = "", - TypeParameter = "", -} - -cmp.setup({ - snippet = { - -- expand = function(args) - -- require("luasnip").lsp_expand(args.body) - -- end, - expand = function(args) - snippy.expand_snippet(args.body) - end, - }, - mapping = { - [""] = cmp.mapping(cmp.mapping.scroll_docs(-4), { "i", "c" }), - [""] = cmp.mapping(cmp.mapping.scroll_docs(4), { "i", "c" }), - [""] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }), - - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - -- elseif luasnip.expand_or_jumpable() then - -- luasnip.expand_or_jump() - elseif has_words_before() then - cmp.complete() - else - fallback() - end - end, { - "i", - "s", - }), - - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - -- elseif luasnip.jumpable(-1) then - -- luasnip.jump(-1) - else - fallback() - end - end, { - "i", - "s", - }), - - -- [""] = cmp.mapping(cmp.mapping.select_next_item(), { "i", "s" }), - -- [""] = cmp.mapping(cmp.mapping.select_prev_item(), { "i", "s" }), - - [""] = cmp.config.disable, -- If you want to remove the default `` mapping, You can specify `cmp.config.disable` value. - [""] = cmp.mapping({ - i = cmp.mapping.abort(), - c = cmp.mapping.close(), - }), - [""] = cmp.mapping.confirm({ select = true }), - }, - - sources = cmp.config.sources({ - { name = "nvim_lsp" }, - -- { name = "vsnip" }, -- For vsnip users. - -- { name = "luasnip" }, -- For luasnip users. - -- { name = 'ultisnips' }, -- For ultisnips users. - { name = "snippy" }, -- For snippy users. - { name = "emoji" }, - }, { - { name = "buffer" }, - }), - formatting = { - fields = { "kind", "abbr", "menu" }, - format = function(entry, vim_item) - -- Kind icons - vim_item.kind = string.format("%s", kind_icons[vim_item.kind]) - -- vim_item.kind = string.format('%s %s', kind_icons[vim_item.kind], vim_item.kind) -- This concatonates the icons with the name of the item kind - vim_item.menu = ({ - nvim_lsp = "[LSP]", - snippy = "[Snippet]", - buffer = "[Buffer]", - path = "[Path]", - })[entry.source.name] - return vim_item - end, - }, - confirm_opts = { - behavior = cmp.ConfirmBehavior.Replace, - select = false, - }, - window = { - documentation = { - border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" }, - }, - }, -}) - --- Use buffer source for `/`. -cmp.setup.cmdline("/", { - sources = { - { name = "buffer" }, - }, -}) - --- Use cmdline & path source for ':'. -cmp.setup.cmdline(":", { - sources = cmp.config.sources({ - { name = "path" }, - }, { - { name = "cmdline" }, - }), -}) diff --git a/lua/packer/settings/compe.lua b/lua/packer/settings/compe.lua deleted file mode 100644 index 7c91eff..0000000 --- a/lua/packer/settings/compe.lua +++ /dev/null @@ -1,98 +0,0 @@ -local global = require("keymap.global") -local map = global.map -local mapOptions = global.mapOptions - -vim.o.completeopt = "menuone,noinsert,noselect" - -require("compe").setup({ - - resolve_timeout = 800, - documentation = { - border = { "", "", "", " ", "", "", "", " " }, -- the border option is the same as `|help nvim_open_win|` - winhighlight = "NormalFloat:CompeDocumentation,FloatBorder:CompeDocumentationBorder", - max_width = 120, - min_width = 60, - max_height = math.floor(vim.o.lines * 0.3), - min_height = 1, - }, - - enabled = true, - autocomplete = true, - debug = false, - min_length = 1, - preselect = "enable", - throttle_time = 80, - source_timeout = 200, - incomplete_delay = 400, - max_abbr_width = 100, - max_kind_width = 100, - max_menu_width = 100, - - -- TODO add emoji for git and other file trype also - source = { - path = { kind = "🪃 (Path)" }, - buffer = { kind = "🗂️ (Buffer)" }, - calc = { kind = "🧮 (Calc)" }, - vsnip = { kind = "🦮 (Snippet)" }, - nvim_lsp = { kind = "🤖 (LSP)" }, - nvim_lua = { kind = "🔵 (Nvim Lua) " }, - text = { kind = "📜 (Text)" }, - luasnip = { kind = "🔵 (Lua)" }, - typescript = { kind = "🟦 (Typescript)" }, - javascript = { kind = "🟨 (Javascript)" }, - spell = { kind = "🙊 (Spell)" }, - vim_dadbod_completion = { "💚 (Vim)" }, - snippets_nvim = { kind = "💁 (Snippets)" }, - ultisnips = { kind = "ℹ️ (Snippets)" }, - treesitter = { kind = "🌳 (Treesitter)" }, - emoji = { kind = "🤣 (Emoji)", filetypes = { "markdown", "text" } }, - }, -}) - -local t = function(str) - return vim.api.nvim_replace_termcodes(str, true, true, true) -end - -local check_back_space = function() - local col = vim.fn.col(".") - 1 - return col == 0 or vim.fn.getline("."):sub(col, col):match("%s") ~= nil -end - --- Use (s-)tab to: ---- move to prev/next item in completion menuone ---- jump to prev/next snippet's placeholder -_G.tab_complete = function() - if vim.fn.pumvisible() == 1 then - return t("") - elseif vim.fn["vsnip#available"](1) == 1 then - return t("(vsnip-expand-or-jump)") - elseif check_back_space() then - return t("") - else - return vim.fn["compe#complete"]() - end -end -_G.s_tab_complete = function() - if vim.fn.pumvisible() == 1 then - return t("") - elseif vim.fn["vsnip#jumpable"](-1) == 1 then - return t("(vsnip-jump-prev)") - else - -- If is not working in your terminal, change it to - return t("") - end -end - --- Complete -map("i", "", "compe#complete()", { expr = true, silent = true }) -map("i", "", "compe#confirm(luaeval(\"require 'nvim-autopairs'.autopairs_cr()\"))", { expr = true, silent = true }) -map("i", "", "compe#close('')", { expr = true, silent = true }) -map("i", "", "compe#scroll({ 'delta': +4 })", { expr = true, silent = true }) -map("i", "", "compe#scroll({ 'delta': -4 })", { expr = true, silent = true }) --- -- -map("i", "", "v:lua.tab_complete()", { expr = true }) -map("s", "", "v:lua.tab_complete()", { expr = true }) -map("i", "", "v:lua.s_tab_complete()", { expr = true }) -map("s", "", "v:lua.s_tab_complete()", { expr = true }) - -vim.cmd([[highlight link CompeDocumentation NormalFloatocal]]) diff --git a/lua/packer/settings/escape.lua b/lua/packer/settings/escape.lua deleted file mode 100644 index 3161701..0000000 --- a/lua/packer/settings/escape.lua +++ /dev/null @@ -1,10 +0,0 @@ -require("better_escape").setup({ - mapping = { "jk", "kj" }, -- a table with mappings to use - timeout = vim.o.timeoutlen, -- the time in which the keys must be hit in ms. Use option timeoutlen by default - clear_empty_lines = false, -- clear line after escaping if there is only whitespace - keys = "", -- keys used for escaping, if it is a function will use the result everytime - -- example - -- keys = function() - -- return vim.fn.col '.' - 2 >= 1 and 'l' or '' - -- end, -}) diff --git a/lua/packer/settings/format.lua b/lua/packer/settings/format.lua deleted file mode 100644 index d3cea06..0000000 --- a/lua/packer/settings/format.lua +++ /dev/null @@ -1,130 +0,0 @@ --- Utilities for creating configurations -local util = require("formatter.util") - -function dprint_args(path) - return { - exe = "dprint", - args = { - "fmt", - "--config ", - "~/.config/dotfiles/dprint/dprint.json", - "--stdin", - path, - }, - stdin = true, - try_node_modules = true, - } -end - -require("formatter").setup({ - filetype = { - rust = { - -- Rustfmt - function() - return { - exe = "rustfmt", - args = { - "--emit=stdout", - }, - stdin = true, - } - end, - }, - lua = { - function() - return { - exe = "stylua", - args = { - "--config-path ", - "~/.config/dotfiles/stylua.toml", - "-", - }, - stdin = true, - } - end, - }, - html = { - function() - return { - exe = "prettier", - args = { "--stdin-filepath", vim.fn.fnameescape(vim.api.nvim_buf_get_name(0)), "--single-quote" }, - stdin = true, - } - end, - }, - css = { - function() - return { - exe = "prettier", - args = { "--stdin-filepath", vim.fn.fnameescape(vim.api.nvim_buf_get_name(0)), "--single-quote" }, - stdin = true, - } - end, - }, - -- SAMPLE for prettier - javascript = { - function() - return dprint_args(util.escape_path(util.get_current_buffer_file_path())) - end, - }, - javascriptreact = { - function() - return dprint_args(util.escape_path(util.get_current_buffer_file_path())) - end, - }, - typescript = { - function() - return dprint_args(util.escape_path(util.get_current_buffer_file_path())) - end, - }, - typescriptreact = { - function() - return dprint_args(util.escape_path(util.get_current_buffer_file_path())) - end, - }, - markdown = { - function() - return dprint_args(util.escape_path(util.get_current_buffer_file_path())) - end, - }, - json = { - function() - return dprint_args(util.escape_path(util.get_current_buffer_file_path())) - end, - }, - }, -}) - --- ~/.config/dotfiles/dprint/dprint.json --- ~/.config/dotfiles/dprint/dprint.json - --- vim.api.nvim_exec( --- [[ --- augroup Format --- autocmd! --- autocmd BufWritePost * FormatWrite --- augroup END --- ]], --- true --- ) - --- vim.api.nvim_exec( --- [[ --- augroup FormatAutogroup --- autocmd! --- autocmd BufWritePost *.js,*.rs,*.lua,*.ts,*.tsx,*.jsx FormatWrite --- augroup END --- ]], --- true --- ) --- - -vim.api.nvim_exec( - [[ -augroup FormatAutogroup - autocmd! - autocmd BufWritePost * FormatWrite -augroup END -]], - true -) diff --git a/lua/packer/settings/kommantary.lua b/lua/packer/settings/kommantary.lua deleted file mode 100644 index d6d8b14..0000000 --- a/lua/packer/settings/kommantary.lua +++ /dev/null @@ -1 +0,0 @@ -vim.g.kommentary_create_default_mappings = true diff --git a/lua/packer/settings/luasnip.lua b/lua/packer/settings/luasnip.lua deleted file mode 100644 index ad22676..0000000 --- a/lua/packer/settings/luasnip.lua +++ /dev/null @@ -1,490 +0,0 @@ -local ls = require("luasnip") --- some shorthands... -local s = ls.snippet -local sn = ls.snippet_node -local t = ls.text_node -local i = ls.insert_node -local f = ls.function_node -local c = ls.choice_node -local d = ls.dynamic_node -local l = require("luasnip.extras").lambda -local r = require("luasnip.extras").rep -local p = require("luasnip.extras").partial -local m = require("luasnip.extras").match -local n = require("luasnip.extras").nonempty -local dl = require("luasnip.extras").dynamic_lambda -local fmt = require("luasnip.extras.fmt").fmt -local fmta = require("luasnip.extras.fmt").fmta -local types = require("luasnip.util.types") -local conds = require("luasnip.extras.expand_conditions") - --- Every unspecified option will be set to the default. -ls.config.set_config({ - history = true, - -- Update more often, :h events for more info. - updateevents = "TextChanged,TextChangedI", - ext_opts = { - [types.choiceNode] = { - active = { - virt_text = { { "choiceNode", "Comment" } }, - }, - }, - }, - -- treesitter-hl has 100, use something higher (default is 200). - ext_base_prio = 300, - -- minimal increase in priority. - ext_prio_increase = 1, - enable_autosnippets = true, -}) - --- args is a table, where 1 is the text in Placeholder 1, 2 the text in --- placeholder 2,... -local function copy(args) - return args[1] -end - --- 'recursive' dynamic snippet. Expands to some text followed by itself. -local rec_ls -rec_ls = function() - return sn( - nil, - c(1, { - -- Order is important, sn(...) first would cause infinite loop of expansion. - t(""), - sn(nil, { t({ "", "\t\\item " }), i(1), d(2, rec_ls, {}) }), - }) - ) -end - --- complicated function for dynamicNode. -local function jdocsnip(args, _, old_state) - local nodes = { - t({ "/**", " * " }), - i(1, "A short Description"), - t({ "", "" }), - } - - -- These will be merged with the snippet; that way, should the snippet be updated, - -- some user input eg. text can be referred to in the new snippet. - local param_nodes = {} - - if old_state then - nodes[2] = i(1, old_state.descr:get_text()) - end - param_nodes.descr = nodes[2] - - -- At least one param. - if string.find(args[2][1], ", ") then - vim.list_extend(nodes, { t({ " * ", "" }) }) - end - - local insert = 2 - for indx, arg in ipairs(vim.split(args[2][1], ", ", true)) do - -- Get actual name parameter. - arg = vim.split(arg, " ", true)[2] - if arg then - local inode - -- if there was some text in this parameter, use it as static_text for this new snippet. - if old_state and old_state[arg] then - inode = i(insert, old_state["arg" .. arg]:get_text()) - else - inode = i(insert) - end - vim.list_extend(nodes, { t({ " * @param " .. arg .. " " }), inode, t({ "", "" }) }) - param_nodes["arg" .. arg] = inode - - insert = insert + 1 - end - end - - if args[1][1] ~= "void" then - local inode - if old_state and old_state.ret then - inode = i(insert, old_state.ret:get_text()) - else - inode = i(insert) - end - - vim.list_extend(nodes, { t({ " * ", " * @return " }), inode, t({ "", "" }) }) - param_nodes.ret = inode - insert = insert + 1 - end - - if vim.tbl_count(args[3]) ~= 1 then - local exc = string.gsub(args[3][2], " throws ", "") - local ins - if old_state and old_state.ex then - ins = i(insert, old_state.ex:get_text()) - else - ins = i(insert) - end - vim.list_extend(nodes, { t({ " * ", " * @throws " .. exc .. " " }), ins, t({ "", "" }) }) - param_nodes.ex = ins - insert = insert + 1 - end - - vim.list_extend(nodes, { t({ " */" }) }) - - local snip = sn(nil, nodes) - -- Error on attempting overwrite. - snip.old_state = param_nodes - return snip -end - --- Make sure to not pass an invalid command, as io.popen() may write over nvim-text. -local function bash(_, _, command) - local file = io.popen(command, "r") - local res = {} - for line in file:lines() do - table.insert(res, line) - end - return res -end - --- Returns a snippet_node wrapped around an insert_node whose initial --- text value is set to the current date in the desired format. -local date_input = function(args, state, fmt) - local fmt = fmt or "%Y-%m-%d" - return sn(nil, i(1, os.date(fmt))) -end - -ls.snippets = { - -- When trying to expand a snippet, luasnip first searches the tables for - -- each filetype specified in 'filetype' followed by 'all'. - -- If ie. the filetype is 'lua.c' - -- - luasnip.lua - -- - luasnip.c - -- - luasnip.all - -- are searched in that order. - all = { - -- trigger is fn. - s("llog", { - -- Simple static text. - t("//Parameters: "), - -- function, first parameter is the function, second the Placeholders - -- whose text it gets as input. - f(copy, 1), - t({ "", 'console.group("' }), - f(copy, 1), - t({ ' ------");', "" }), - t({ 'console.log("================");', "" }), - t({ "console.log(" }), - i(1), - t({ ");", "" }), - t({ 'console.log("================");', "" }), - -- Last Placeholder, exit Point of the snippet. EVERY 'outer' SNIPPET NEEDS Placeholder 0. - i(0), - t({ "console.groupEnd();" }), - }), - s("fn", { - -- Simple static text. - t("//Parameters: "), - -- function, first parameter is the function, second the Placeholders - -- whose text it gets as input. - f(copy, 2), - t({ "", "function " }), - -- Placeholder/Insert. - i(1), - t("("), - -- Placeholder with initial text. - i(2, "int foo"), - -- Linebreak - t({ ") {", "\t" }), - -- Last Placeholder, exit Point of the snippet. EVERY 'outer' SNIPPET NEEDS Placeholder 0. - i(0), - t({ "", "}" }), - }), - s("class", { - -- Choice: Switch between two different Nodes, first parameter is its position, second a list of nodes. - c(1, { - t("public "), - t("private "), - }), - t("class "), - i(2), - t(" "), - c(3, { - t("{"), - -- sn: Nested Snippet. Instead of a trigger, it has a position, just like insert-nodes. !!! These don't expect a 0-node!!!! - -- Inside Choices, Nodes don't need a position as the choice node is the one being jumped to. - sn(nil, { - t("extends "), - i(1), - t(" {"), - }), - sn(nil, { - t("implements "), - i(1), - t(" {"), - }), - }), - t({ "", "\t" }), - i(0), - t({ "", "}" }), - }), - -- Use a dynamic_node to interpolate the output of a - -- function (see date_input above) into the initial - -- value of an insert_node. - s("novel", { - t("It was a dark and stormy night on "), - d(1, date_input, {}, "%A, %B %d of %Y"), - t(" and the clocks were striking thirteen."), - }), - -- Parsing snippets: First parameter: Snippet-Trigger, Second: Snippet body. - -- Placeholders are parsed into choices with 1. the placeholder text(as a snippet) and 2. an empty string. - -- This means they are not SELECTed like in other editors/Snippet engines. - ls.parser.parse_snippet("lspsyn", "Wow! This ${1:Stuff} really ${2:works. ${3:Well, a bit.}}"), - - -- When wordTrig is set to false, snippets may also expand inside other words. - ls.parser.parse_snippet({ trig = "te", wordTrig = false }, "${1:cond} ? ${2:true} : ${3:false}"), - - -- When regTrig is set, trig is treated like a pattern, this snippet will expand after any number. - ls.parser.parse_snippet({ trig = "%d", regTrig = true }, "A Number!!"), - -- Using the condition, it's possible to allow expansion only in specific cases. - s("cond", { - t("will only expand in c-style comments"), - }, { - condition = function(line_to_cursor, matched_trigger, captures) - -- optional whitespace followed by // - return line_to_cursor:match("%s*//") - end, - }), - -- there's some built-in conditions in "luasnip.extras.expand_conditions". - s("cond2", { - t("will only expand at the beginning of the line"), - }, { - condition = conds.line_begin, - }), - -- The last entry of args passed to the user-function is the surrounding snippet. - s( - { trig = "a%d", regTrig = true }, - f(function(_, snip) - return "Triggered with " .. snip.trigger .. "." - end, {}) - ), - -- It's possible to use capture-groups inside regex-triggers. - s( - { trig = "b(%d)", regTrig = true }, - f(function(_, snip) - return "Captured Text: " .. snip.captures[1] .. "." - end, {}) - ), - s({ trig = "c(%d+)", regTrig = true }, { - t("will only expand for even numbers"), - }, { - condition = function(line_to_cursor, matched_trigger, captures) - return tonumber(captures[1]) % 2 == 0 - end, - }), - -- Use a function to execute any shell command and print its text. - s("bash", f(bash, {}, "ls")), - -- Short version for applying String transformations using function nodes. - s("transform", { - i(1, "initial text"), - t({ "", "" }), - -- lambda nodes accept an l._1,2,3,4,5, which in turn accept any string transformations. - -- This list will be applied in order to the first node given in the second argument. - l(l._1:match("[^i]*$"):gsub("i", "o"):gsub(" ", "_"):upper(), 1), - }), - s("transform2", { - i(1, "initial text"), - t("::"), - i(2, "replacement for e"), - t({ "", "" }), - -- Lambdas can also apply transforms USING the text of other nodes: - l(l._1:gsub("e", l._2), { 1, 2 }), - }), - s({ trig = "trafo(%d+)", regTrig = true }, { - -- env-variables and captures can also be used: - l(l.CAPTURE1:gsub("1", l.TM_FILENAME), {}), - }), - -- Set store_selection_keys = "" (for example) in your - -- luasnip.config.setup() call to access TM_SELECTED_TEXT. In - -- this case, select a URL, hit Tab, then expand this snippet. - s("link_url", { - t(''), - i(1), - t(""), - i(0), - }), - -- Shorthand for repeating the text in a given node. - s("repeat", { i(1, "text"), t({ "", "" }), r(1) }), - -- Directly insert the ouput from a function evaluated at runtime. - s("part", p(os.date, "%Y")), - -- use matchNodes to insert text based on a pattern/function/lambda-evaluation. - s("mat", { - i(1, { "sample_text" }), - t(": "), - m(1, "%d", "contains a number", "no number :("), - }), - -- The inserted text defaults to the first capture group/the entire - -- match if there are none - s("mat2", { - i(1, { "sample_text" }), - t(": "), - m(1, "[abc][abc][abc]"), - }), - -- It is even possible to apply gsubs' or other transformations - -- before matching. - s("mat3", { - i(1, { "sample_text" }), - t(": "), - m(1, l._1:gsub("[123]", ""):match("%d"), "contains a number that isn't 1, 2 or 3!"), - }), - -- `match` also accepts a function, which in turn accepts a string - -- (text in node, \n-concatted) and returns any non-nil value to match. - -- If that value is a string, it is used for the default-inserted text. - s("mat4", { - i(1, { "sample_text" }), - t(": "), - m(1, function(text) - return (#text % 2 == 0 and text) or nil - end), - }), - -- The nonempty-node inserts text depending on whether the arg-node is - -- empty. - s("nempty", { - i(1, "sample_text"), - n(1, "i(1) is not empty!"), - }), - -- dynamic lambdas work exactly like regular lambdas, except that they - -- don't return a textNode, but a dynamicNode containing one insertNode. - -- This makes it easier to dynamically set preset-text for insertNodes. - s("dl1", { - i(1, "sample_text"), - t({ ":", "" }), - dl(2, l._1, 1), - }), - -- Obviously, it's also possible to apply transformations, just like lambdas. - s("dl2", { - i(1, "sample_text"), - i(2, "sample_text_2"), - t({ "", "" }), - dl(3, l._1:gsub("\n", " linebreak ") .. l._2, { 1, 2 }), - }), - -- Alternative printf-like notation for defining snippets. It uses format - -- string with placeholders similar to the ones used with Python's .format(). - s( - "fmt1", - fmt("To {title} {} {}.", { - i(2, "Name"), - i(3, "Surname"), - title = c(1, { t("Mr."), t("Ms.") }), - }) - ), - -- To escape delimiters use double them, e.g. `{}` -> `{{}}`. - -- Multi-line format strings by default have empty first/last line removed. - -- Indent common to all lines is also removed. Use the third `opts` argument - -- to control this behaviour. - s( - "fmt2", - fmt( - [[ - foo({1}, {3}) {{ - return {2} * {4} - }} - ]], - { - i(1, "x"), - r(1), - i(2, "y"), - r(2), - } - ) - ), - -- Empty placeholders are numbered automatically starting from 1 or the last - -- value of a numbered placeholder. Named placeholders do not affect numbering. - s( - "fmt3", - fmt("{} {a} {} {1} {}", { - t("1"), - t("2"), - a = t("A"), - }) - ), - -- The delimiters can be changed from the default `{}` to something else. - s("fmt4", fmt("foo() { return []; }", i(1, "x"), { delimiters = "[]" })), - -- `fmta` is a convenient wrapper that uses `<>` instead of `{}`. - s("fmt5", fmta("foo() { return <>; }", i(1, "x"))), - -- By default all args must be used. Use strict=false to disable the check - s("fmt6", fmt("use {} only", { t("this"), t("not this") }, { strict = false })), - }, - java = { - -- Very long example for a java class. - s("fn", { - d(6, jdocsnip, { 2, 4, 5 }), - t({ "", "" }), - c(1, { - t("public "), - t("private "), - }), - c(2, { - t("void"), - t("String"), - t("char"), - t("int"), - t("double"), - t("boolean"), - i(nil, ""), - }), - t(" "), - i(3, "myFunc"), - t("("), - i(4), - t(")"), - c(5, { - t(""), - sn(nil, { - t({ "", " throws " }), - i(1), - }), - }), - t({ " {", "\t" }), - i(0), - t({ "", "}" }), - }), - }, - tex = { - -- rec_ls is self-referencing. That makes this snippet 'infinite' eg. have as many - -- \item as necessary by utilizing a choiceNode. - s("ls", { - t({ "\\begin{itemize}", "\t\\item " }), - i(1), - d(2, rec_ls, {}), - t({ "", "\\end{itemize}" }), - }), - }, -} - --- autotriggered snippets have to be defined in a separate table, luasnip.autosnippets. -ls.autosnippets = { - all = { - s("autotrigger", { - t("autosnippet"), - }), - }, -} - --- in a lua file: search lua-, then c-, then all-snippets. -ls.filetype_extend("lua", { "c" }) --- in a cpp file: search c-snippets, then all-snippets only (no cpp-snippets!!). -ls.filetype_set("cpp", { "c" }) - ---[[ --- Beside defining your own snippets you can also load snippets from "vscode-like" packages --- that expose snippets in json files, for example . --- Mind that this will extend `ls.snippets` so you need to do it after your own snippets or you --- will need to extend the table yourself instead of setting a new one. -]] - -require("luasnip/loaders/from_vscode").load({ include = { "python" } }) -- Load only python snippets --- The directories will have to be structured like eg. (include --- a similar `package.json`) -require("luasnip/loaders/from_vscode").load({ paths = { "./my-snippets" } }) -- Load snippets from my-snippets folder - --- You can also use lazy loading so you only get in memory snippets of languages you use -require("luasnip/loaders/from_vscode").lazy_load() -- You can pass { paths = "./my-snippets/"} as well diff --git a/lua/packer/settings/nvimtree.lua b/lua/packer/settings/nvimtree.lua deleted file mode 100644 index 13d83b6..0000000 --- a/lua/packer/settings/nvimtree.lua +++ /dev/null @@ -1,43 +0,0 @@ -return { - side = "left", - width = 30, - show_icons = { - git = 1, - folders = 1, - files = 1, - folder_arrows = 1, - tree_width = 30, - }, - ignore = { ".git", "node_modules", ".cache" }, - auto_open = 1, - auto_close = 1, - quit_on_open = 0, - follow = 1, - hide_dotfiles = 1, - git_hl = 1, - root_folder_modifier = ":t", - tab_open = 0, - allow_resize = 1, - lsp_diagnostics = 1, - auto_ignore_ft = { "startify", "dashboard" }, - icons = { - default = "", - symlink = "", - git = { - unstaged = "", - staged = "S", - unmerged = "", - renamed = "➜", - deleted = "", - untracked = "U", - ignored = "◌", - }, - folder = { - default = "", - open = "", - empty = "", - empty_open = "", - symlink = "", - }, - }, -} diff --git a/lua/packer/settings/rainbow.lua b/lua/packer/settings/rainbow.lua deleted file mode 100644 index e37698b..0000000 --- a/lua/packer/settings/rainbow.lua +++ /dev/null @@ -1,13 +0,0 @@ -require("nvim-treesitter.configs").setup({ - highlight = { - -- ... - }, - -- ... - rainbow = { - enable = true, - extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean - max_file_lines = nil, -- Do not enable for files with more than n lines, int - -- colors = {}, -- table of hex strings - -- termcolors = {} -- table of colour name strings - }, -}) diff --git a/lua/packer/settings/renamer.lua b/lua/packer/settings/renamer.lua deleted file mode 100644 index ef368b5..0000000 --- a/lua/packer/settings/renamer.lua +++ /dev/null @@ -1,12 +0,0 @@ -require("renamer").setup({ - -- The popup title, shown if `border` is true - title = "Rename", - -- Whether or not to highlight the current word references through LSP - show_refs = true, - -- Whether or not to add resulting changes to the quickfix list - with_qf_list = true, - -- Whether or not to enter the new name through the UI or Neovim's `input` - -- prompt - with_popup = true, - -- The keymaps available while in the `renamer` buffer. The example below -}) diff --git a/lua/packer/settings/rest.lua b/lua/packer/settings/rest.lua deleted file mode 100644 index b86a290..0000000 --- a/lua/packer/settings/rest.lua +++ /dev/null @@ -1,21 +0,0 @@ -require("rest-nvim").setup({ - -- Open request results in a horizontal split - result_split_horizontal = false, - -- Skip SSL verification, useful for unknown certificates - skip_ssl_verification = false, - -- Highlight request on run - highlight = { - enabled = true, - timeout = 150, - }, - result = { - -- toggle showing URL, HTTP info, headers at top the of result window - show_url = true, - show_http_info = true, - show_headers = true, - }, - -- Jump to request line on run - jump_to_request = false, - env_file = ".env", - custom_dynamic_variables = {}, -}) diff --git a/lua/packer/settings/rust.lua b/lua/packer/settings/rust.lua deleted file mode 100644 index 73c6ac8..0000000 --- a/lua/packer/settings/rust.lua +++ /dev/null @@ -1,39 +0,0 @@ -local opts = { - tools = { -- rust-tools options - autoSetHints = true, - hover_with_actions = true, - inlay_hints = { - show_parameter_hints = false, - parameter_hints_prefix = "", - other_hints_prefix = "", - }, - }, - - -- all the opts to send to nvim-lspconfig - -- these override the defaults set by rust-tools.nvim - -- see https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rust_analyzer - server = { - -- on_attach is a callback called when the language server attachs to the buffer - -- on_attach = on_attach, - settings = { - -- to enable rust-analyzer settings visit: - -- https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/generated_config.adoc - ["rust-analyzer"] = { - -- enable clippy on save - checkOnSave = { - command = "clippy", - }, - lens = { - enumVariantReferences = true, - methodReferences = true, - references = true, - }, - rustfmt = { - enableRangeFormatting = true, - }, - }, - }, - }, -} - -require("rust-tools").setup(opts) diff --git a/lua/packer/settings/toggleterm.lua b/lua/packer/settings/toggleterm.lua deleted file mode 100644 index 417fd9c..0000000 --- a/lua/packer/settings/toggleterm.lua +++ /dev/null @@ -1,31 +0,0 @@ -require("toggleterm").setup{ - open_mapping = [[]], - hide_numbers = true, -- hide the number column in toggleterm buffers - shade_filetypes = {}, - shade_terminals = true, - shading_factor = '', -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light - start_in_insert = true, - insert_mappings = true, -- whether or not the open mapping applies in insert mode - persist_size = true, - -- direction = 'vertical' | 'horizontal' | 'window' | 'float', - direction = 'float', - close_on_exit = true, -- close the terminal window when the process exits - shell = vim.o.shell, -- change the default shell - -- This field is only relevant if direction is set to 'float' - float_opts = { - -- The border key is *almost* the same as 'nvim_win_open' - -- see :h nvim_win_open for details on borders however - -- the 'curved' border is a custom border type - -- not natively supported but implemented in this plugin. - -- border = 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open - border = 'curved', - -- width = , - -- height = , - winblend = 3, - highlights = { - border = "Normal", - background = "Normal", - } - } -} - diff --git a/lua/packer/settings/tree.lua b/lua/packer/settings/tree.lua deleted file mode 100644 index 1ff0d74..0000000 --- a/lua/packer/settings/tree.lua +++ /dev/null @@ -1,34 +0,0 @@ --- local myTreeConfig = require("packer.settings.nvimtree") -local tree_cb = require("nvim-tree.config").nvim_tree_callback -require("nvim-tree").setup({ - -- local tree_cb = require("nvim-tree.config").nvim_tree_callback - -- local list = { - -- { key = { "l", "", "o" }, cb = tree_cb("edit") }, - -- { key = "h", cb = tree_cb("close_node") }, - -- { key = "v", cb = tree_cb("vsplit") }, - -- } - update_cwd = true, - update_focused_file = { - enable = true, - update_cwd = true, - }, - view = { - mappings = { - custom_only = false, - list = { - { key = { "l", "", "o" }, cb = tree_cb("edit") }, - { key = "h", cb = tree_cb("close_node") }, - { key = "v", cb = tree_cb("vsplit") }, - }, - }, - }, -}) --- local g = vim.g --- for opt, val in pairs(myTreeConfig) do --- g["nvim_tree_" .. opt] = val --- end -local list = { - { key = { "l", "", "o" }, cb = tree_cb("edit") }, - { key = "h", cb = tree_cb("close_node") }, - { key = "v", cb = tree_cb("vsplit") }, -} diff --git a/lua/packer/settings/treesitter.lua b/lua/packer/settings/treesitter.lua deleted file mode 100644 index 68a65d0..0000000 --- a/lua/packer/settings/treesitter.lua +++ /dev/null @@ -1,60 +0,0 @@ --- Treesitter configuration --- Parsers must be installed manually via :TSInstall -require("nvim-treesitter.configs").setup({ - autopairs = { enable = true }, - autotag = { - enable = true, - }, - context_commentstring = { - enable = true, - enable_autocmd = false, - }, - highlight = { - enable = true, -- false will disable the whole extension - }, - incremental_selection = { - enable = true, - keymaps = { - init_selection = "gnn", - node_incremental = "grn", - scope_incremental = "grc", - node_decremental = "grm", - }, - }, - indent = { - enable = true, - }, - textobjects = { - select = { - enable = true, - lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim - keymaps = { - -- You can use the capture groups defined in textobjects.scm - ["af"] = "@function.outer", - ["if"] = "@function.inner", - ["ac"] = "@class.outer", - ["ic"] = "@class.inner", - }, - }, - move = { - enable = true, - set_jumps = true, -- whether to set jumps in the jumplist - goto_next_start = { - ["]m"] = "@function.outer", - ["]]"] = "@class.outer", - }, - goto_next_end = { - ["]M"] = "@function.outer", - ["]["] = "@class.outer", - }, - goto_previous_start = { - ["[m"] = "@function.outer", - ["[["] = "@class.outer", - }, - goto_previous_end = { - ["[M"] = "@function.outer", - ["[]"] = "@class.outer", - }, - }, - }, -}) diff --git a/lua/packer/settings/ts-comment.lua b/lua/packer/settings/ts-comment.lua deleted file mode 100644 index 936d465..0000000 --- a/lua/packer/settings/ts-comment.lua +++ /dev/null @@ -1,25 +0,0 @@ -require("Comment").setup({ - -- -@param ctx Ctx - pre_hook = function(ctx) - -- Only calculate commentstring for tsx filetypes - if vim.bo.filetype == "typescriptreact" then - local U = require("Comment.utils") - - -- Detemine whether to use linewise or blockwise commentstring - local type = ctx.ctype == U.ctype.line and "__default" or "__multiline" - - -- Determine the location where to calculate commentstring from - local location = nil - if ctx.ctype == U.ctype.block then - location = require("ts_context_commentstring.utils").get_cursor_location() - elseif ctx.cmotion == U.cmotion.v or ctx.cmotion == U.cmotion.V then - location = require("ts_context_commentstring.utils").get_visual_start_location() - end - - return require("ts_context_commentstring.internal").calculate_commentstring({ - key = type, - location = location, - }) - end - end, -}) diff --git a/lua/packer/settings/which-key.lua b/lua/packer/settings/which-key.lua deleted file mode 100644 index 73b47bc..0000000 --- a/lua/packer/settings/which-key.lua +++ /dev/null @@ -1,272 +0,0 @@ -local M = {} - -M.settings = { - plugins = { - marks = true, -- shows a list of your marks on ' and ` - registers = true, -- shows your registers on " in NORMAL or in INSERT mode - -- the presets plugin, adds help for a bunch of default keybindings in Neovim - -- No actual key bindings are created - presets = { - operators = false, -- adds help for operators like d, y, ... - motions = false, -- adds help for motions - text_objects = false, -- help for text objects triggered after entering an operator - windows = true, -- default bindings on - nav = true, -- misc bindings to work with windows - z = true, -- bindings for folds, spelling and others prefixed with z - g = true, -- bindings for prefixed with g - }, - spelling = { enabled = true, suggestions = 20 }, -- use which-key for spelling hints - }, - icons = { - breadcrumb = "»", -- symbol used in the command line area that shows your active key combo - separator = "➜", -- symbol used between a key and it's label - group = "+", -- symbol prepended to a group - }, - window = { - border = "rounded", -- none, single, double, shadow - position = "bottom", -- bottom, top - margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left] - padding = { 2, 2, 2, 2 }, -- extra window padding [top, right, bottom, left] - winblend = 0, - }, - layout = { - height = { min = 4, max = 25 }, -- min and max height of the columns - width = { min = 20, max = 50 }, -- min and max width of the columns - spacing = 3, -- spacing between columns - align = "left", - }, - hidden = { "", "", "", "", "call", "lua", "^:", "^ " }, -- hide mapping boilerplate - show_help = true, -- show help message on the command line when the popup is visible -} - -M.normalOpts = { - mode = "n", -- NORMAL mode - prefix = "", - buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings - silent = true, -- use `silent` when creating keymaps - noremap = true, -- use `noremap` when creating keymaps - nowait = true, -- use `nowait` when creating keymaps -} - -M.visualOpts = { - mode = "v", -- VISUAL mode - prefix = "", - buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings - silent = true, -- use `silent` when creating keymaps - noremap = true, -- use `noremap` when creating keymaps - nowait = true, -- use `nowait` when creating keymaps -} - -M.vmappings = { - ["/"] = { "'<,'>lua require('Comment').toggle()", "Comment" }, - ["s"] = { "'<,'>lua require('spectre').open_visual()", "Search and replace" }, - r = { "lua require('renamer').rename()", "rename UI like VS-CODE" }, -} - -M.mappings = { - ["q"] = { "q!", "Quit" }, - ["/"] = { "lua require('Comment').toggle()", "Comment" }, - ["c"] = { "bd", "Close Buffer (bd)" }, - ["C"] = { "close", "Close Buffer (close)" }, - ["e"] = { "NvimTreeFindFileToggle", "Explorer" }, - ["f"] = { "Telescope find_files", "Find File" }, - ["h"] = { "lua require'hop'.hint_words()", "Find word (HOP)" }, - ["n"] = { "noh", "Turn off search highlight" }, - ["v"] = { "NvimContextVtToggle", "Virtual text by treesitter" }, - r = { - name = "Format & Replace & Regex ", - f = { "Format", "Format File" }, - r = { "lua require('renamer').rename()", "rename UI like VS-CODE" }, - p = { "lua require'regexplainer'.show { display = 'popup' }", "display Regex pattern in popup" }, - s = { "lua require'regexplainer'.show { display = 'split' }", "display Regex pattern in split window" }, - }, - w = { - name = "Windows Mannager", - m = { "WinShift", "Window manipulation" }, - }, - H = { - name = "Http things", - r = { "lua require('rest-nvim').run()", "run the request under the cursor" }, - p = { "lua require('rest-nvim').run(true)", "preview the request cURL command" }, - l = { "lua require('rest-nvim').last()", "re-run the last request" }, - }, - b = { - name = "Buffers", - j = { "BufferLinePick", "jump to buffer" }, - f = { "Telescope buffers", "Find buffer" }, - w = { "%bd|e#|bd#", "wipeout buffer" }, - r = { - "BufferLineCloseRight", - "close all BufferLines to the right", - }, - l = { - "BufferLineCloseLeft", - "close all BufferLines to the left", - }, - d = { - "BufferLineSortByDirectory", - "sort BufferLines automatically by directory", - }, - n = { - "BufferLineSortByExtension", - "sort BufferLines automatically by language", - }, - t = { - "BufferLineSortByTabs", - "sort BufferLines automatically by Tabs", - }, - }, - p = { - name = "Lazy Plugins", - i = { "Lazy install", "install the package if a new package is available" }, - c = { "Lazy check", "check plugins for available updates" }, - l = { "Lazy log", "log plugins last release notes" }, - r = { "Lazy restore", "restore plugins to prior commits" }, - p = { "Lazy profile", "plugins profile" }, - d = { "Lazy debug", "debugging plugins" }, - s = { "Lazy sync", "sync packages with git repos" }, - u = { "Lazy update", "update packages" }, - x = { "Lazy clean", "clean unused package" }, - h = { "Lazy help", "lazy plugin help" }, - }, - - -- " Available Debug Adapters: - -- " https://microsoft.github.io/debug-adapter-protocol/implementors/adapters/ - -- " Adapter configuration and installation instructions: - -- " https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation - -- " Debug Adapter protocol: - -- " https://microsoft.github.io/debug-adapter-protocol/ - -- " Debugging - g = { - name = "Git", - j = { "lua require 'gitsigns'.next_hunk()", "Next Hunk" }, - k = { "lua require 'gitsigns'.prev_hunk()", "Prev Hunk" }, - l = { "lua require 'gitsigns'.blame_line()", "Blame" }, - p = { "lua require 'gitsigns'.preview_hunk()", "Preview Hunk" }, - r = { "lua require 'gitsigns'.reset_hunk()", "Reset Hunk" }, - R = { "lua require 'gitsigns'.reset_buffer()", "Reset Buffer" }, - s = { "lua require 'gitsigns'.stage_hunk()", "Stage Hunk" }, - u = { - "lua require 'gitsigns'.undo_stage_hunk()", - "Undo Stage Hunk", - }, - o = { "Telescope git_status", "Open changed file" }, - b = { "Telescope git_branches", "Checkout branch" }, - c = { "Telescope git_commits", "Checkout commit" }, - C = { - "Telescope git_bcommits", - "Checkout commit(for current file)", - }, - }, - o = { - name = "+ Portal Jumplist", - o = { "lua require('portal').jump_backward()", "Jump backward" }, - i = { "lua require('portal').jump_forward()", "Jump forward" }, - m = { "lua require('portal.mark').toggle()", "marks jump list" }, - }, - m = { - name = "+ Markdown Tools", - t = { "Glow", "Preview in terminal directly" }, - p = { "MarkdownPreviewToggle", "Start/Stop Preview in default browser" }, - }, - l = { - name = "LSP", - -- a = { - -- "lua require'telescope.builtin'.lsp_code_actions(require('telescope.themes').get_dropdown({}))", - -- "Code Action", - -- }, - a = { - "Lspsaga code_action", - "Code Action", - }, - l = { - "Lspsaga show_line_diagnostics", - "Line Diagnostics", - }, - h = { - "Lspsaga hover_doc", - "Lsp Hover Doc", - }, - c = { - "Lspsaga show_cursor_diagnostics", - "Line Diagnostics", - }, - w = { - "Telescope lsp_workspace_symbols", - "Workspace Symbols", - }, - -- f = { "silent FormatWrite", "Format" }, - f = { "lua vim.lsp.buf.formatting()", "Format" }, - i = { "LspInfo", "Info" }, - j = { - "Lspsaga diagnostic_jump_next", - "Next Diagnostic", - }, - k = { - "Lspsaga diagnostic_jump_prev", - "Prev Diagnostic", - }, - n = { - "lua require('lspsaga.diagnostic').goto_next({ severity = vim.diagnostic.severity.ERROR })", - "Next ERROR", - }, - e = { - "lua require('lspsaga.diagnostic').goto_prev({ severity = vim.diagnostic.severity.ERROR })", - "Prev ERROR", - }, - p = { "Lspsaga peek_definition", "Peek Definition" }, - r = { "Lspsaga rename", "Rename" }, - s = { "Lspsaga lsp_finder", "find and search with LSP" }, - S = { - "Telescope lsp_dynamic_workspace_symbols", - "Workspace Symbols", - }, - o = { - "Lspsaga outline", - "Open Outline", - }, - }, - t = { - name = "Float Terminal", - t = { "Lspsaga open_floaterm", "Open Terminal" }, - g = { "Lspsaga open_floaterm gitui", "Open GitUI" }, - l = { "Lspsaga open_floaterm lazygit", "Open lazygit" }, - }, - s = { - name = "Search", - b = { "Telescope git_branches", "Checkout branch" }, - c = { "Telescope colorscheme", "Colorscheme" }, - f = { "Telescope find_files", "Find File" }, - h = { "Telescope help_tags", "Find Help" }, - M = { "Telescope man_pages", "Man Pages" }, - r = { "Telescope oldfiles", "Open Recent File" }, - R = { "Telescope registers", "Registers" }, - t = { "Telescope live_grep", "Text" }, - k = { "Telescope keymaps", "Keymaps" }, - C = { "Telescope commands", "Commands" }, - p = { - "lua require('telescope.builtin.internal').colorscheme({enable_preview = true})", - "Colorscheme with Preview", - }, - g = { "lua require('spectre').open()", "Search and replace with rg" }, - w = { - "lua require('spectre').open_visual({select_word=true})", - "Search and replace with rg (select word under cursor)", - }, - l = { - "lua require('spectre').open_file_search()", - "Search and replace with rg (active buffer set to path)", - }, - }, - T = { - name = "Treesitter", - i = { ":TSConfigInfo", "Info" }, - }, - z = { - name = "Spell", - t = { "set spell!", "toggle spell checker" }, - p = { "normal! mz[s1z=`z", "pick first suggest in spell checker" }, - }, -} - -return M diff --git a/lua/packer/settings/windline.lua b/lua/packer/settings/windline.lua deleted file mode 100644 index 3b0eca0..0000000 --- a/lua/packer/settings/windline.lua +++ /dev/null @@ -1,9 +0,0 @@ --- require('wlsample.airline') --- require('wlsample.airline_anim') --- require('wlsample.bubble') --- require('wlsample.bubble2') -require("wlsample.evil_line") --- require('wlsample.vscode') --- require('wlsample.basic') --- require('wlsample.wind') --- require("wlsample.airline_luffy") diff --git a/lua/packer/settings/winshift.lua b/lua/packer/settings/winshift.lua deleted file mode 100644 index 5cb1188..0000000 --- a/lua/packer/settings/winshift.lua +++ /dev/null @@ -1,12 +0,0 @@ -require("winshift").setup({ - highlight_moving_win = true, -- Highlight the window being moved - focused_hl_group = "Visual", -- The highlight group used for the moving window - moving_win_options = { - -- These are local options applied to the moving window while it's - -- being moved. They are unset when you leave Win-Move mode. - wrap = false, - cursorline = false, - cursorcolumn = false, - colorcolumn = "", - }, -})