diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-05-13 19:32:22 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-05-13 19:32:22 -0400 |
| commit | 2f3f91682f7b4a33f1791781bfa8eca4f7c9527a (patch) | |
| tree | eaf91e90301d87363bcb22dcd5c2253e0b0bad6d /.config/nvim/lua/plugins | |
| parent | be8c956b0e819f2db0c6ae3598b6590b62982a83 (diff) | |
new system on gentoo
Diffstat (limited to '.config/nvim/lua/plugins')
| -rw-r--r-- | .config/nvim/lua/plugins/cmp.lua | 53 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/colorscheme.lua | 6 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/comment.lua | 4 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/fidget.lua | 17 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/glance.lua | 10 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/init.lua | 1 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/lspconfig.lua | 96 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/luadev.lua | 5 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/luasnip.lua | 12 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/multicursor.lua | 61 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/neogit.lua | 8 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/pair.lua | 5 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/scroll.lua | 23 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/signature.lua | 10 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/surround.lua | 21 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/telescope.lua | 45 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/treesitter.lua | 24 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/trouble.lua | 37 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/yank.lua | 10 |
19 files changed, 0 insertions, 448 deletions
diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua deleted file mode 100644 index f515e17..0000000 --- a/.config/nvim/lua/plugins/cmp.lua +++ /dev/null @@ -1,53 +0,0 @@ -return { - 'hrsh7th/nvim-cmp', - event = { 'InsertEnter', 'CmdlineEnter' }, - dependencies = { - 'saadparwaiz1/cmp_luasnip', - 'hrsh7th/cmp-buffer', - 'hrsh7th/cmp-cmdline', - 'hrsh7th/cmp-path', - }, - opts = function() - local cmp = require('cmp') - local select_opts = {behavior = cmp.SelectBehavior.Select} - - return { - snippet = { - expand = function(args) - require('luasnip').lsp_expand(args.body) - end, - }, - mapping = { - ['<C-p>'] = cmp.mapping.select_prev_item(select_opts), - ['<C-n>'] = cmp.mapping.select_next_item(select_opts), - ['<C-u>'] = cmp.mapping.scroll_docs(-4), - ['<C-d>'] = cmp.mapping.scroll_docs(4), - ['<C-e>'] = cmp.mapping.abort(), - ['<Tab>'] = cmp.mapping.confirm({select = true}), - }, - sources = cmp.config.sources({ - { name = 'nvim_lsp', max_item_count = 5, keyword_length = 1 }, - { name = "luasnip", max_item_count = 5, keyword_length = 2 }, - }, { - { name = 'buffer', max_item_count = 2, keyword_length = 3 }, - }, { - { name = 'path', max_item_count = 2 }, - }), - sorting = { - comparators = { - cmp.config.compare.offset, - cmp.config.compare.exact, - --cmp.config.compare.scopes, - cmp.config.compare.score, - - cmp.config.compare.locality, - cmp.config.compare.kind, - --cmp.config.compare.sort_text, - cmp.config.compare.length, - cmp.config.compare.order, - }, - }, - } - end, -} - diff --git a/.config/nvim/lua/plugins/colorscheme.lua b/.config/nvim/lua/plugins/colorscheme.lua deleted file mode 100644 index acdc3ee..0000000 --- a/.config/nvim/lua/plugins/colorscheme.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - "folke/tokyonight.nvim", - config = function () - vim.cmd[[colorscheme tokyonight-moon]] - end -} diff --git a/.config/nvim/lua/plugins/comment.lua b/.config/nvim/lua/plugins/comment.lua deleted file mode 100644 index 4fbab38..0000000 --- a/.config/nvim/lua/plugins/comment.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - 'numToStr/Comment.nvim', - config = true, -} diff --git a/.config/nvim/lua/plugins/fidget.lua b/.config/nvim/lua/plugins/fidget.lua deleted file mode 100644 index facf28b..0000000 --- a/.config/nvim/lua/plugins/fidget.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - 'j-hui/fidget.nvim', - tag = 'v1.4.1', - lazy = true, - opts = { - progress = { - display = { - progress_icon = { pattern = 'line', period = 0.7 }, - }, - }, - notification = { - window = { - winblend = 0, - }, - }, - }, -} diff --git a/.config/nvim/lua/plugins/glance.lua b/.config/nvim/lua/plugins/glance.lua deleted file mode 100644 index 9c43939..0000000 --- a/.config/nvim/lua/plugins/glance.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - 'dnlhc/glance.nvim', - cmd = 'Glance', - config = function() - require("glance").setup({}) - end, - keys = { - { 'gr', '<CMD>Glance references<CR>' } - } -} diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua deleted file mode 100644 index a564707..0000000 --- a/.config/nvim/lua/plugins/init.lua +++ /dev/null @@ -1 +0,0 @@ -return {} diff --git a/.config/nvim/lua/plugins/lspconfig.lua b/.config/nvim/lua/plugins/lspconfig.lua deleted file mode 100644 index ee8c464..0000000 --- a/.config/nvim/lua/plugins/lspconfig.lua +++ /dev/null @@ -1,96 +0,0 @@ -local on_attach = function(client, bufnr) - local keymap = function(mode, keys, func, opts) - opts.buffer = bufnr - vim.keymap.set(mode, keys, func, opts) - end - - keymap('n', 'gd', vim.lsp.buf.definition, { desc = 'Go to definition' }) - keymap('n', 'gD', vim.lsp.buf.declaration, { desc = 'Go to declaration' }) - keymap('n', 'gI', vim.lsp.buf.implementation, { desc = 'Go to implementation' }) - keymap('n', 'gy', vim.lsp.buf.type_definition, { desc = 'Go to type definition' }) - -- keymap('n', 'gr', vim.lsp.buf.references, { desc = 'List references' }) - - keymap('n', '<leader>ds', vim.lsp.buf.document_symbol, { desc = 'List document symbols' }) - keymap('n', '<leader>ws', vim.lsp.buf.workspace_symbol, { desc = 'List workspace symbols' }) - - keymap('n', 'K', vim.lsp.buf.hover, { desc = 'Show documentation' }) - keymap('n', 'gK', vim.lsp.buf.signature_help, { desc = 'Show signature' }) - keymap('i', '<C-s>', vim.lsp.buf.signature_help, { desc = 'Show signature' }) - - keymap('n', '<leader>rn', vim.lsp.buf.rename, { desc = 'Rename symbol' }) - keymap('n', '<leader>ca', vim.lsp.buf.code_action, { desc = 'Code action' }) - - keymap('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, { desc = 'Add workspace folder' }) - keymap('n', '<leader>wr', vim.lsp.buf.remove_workspace_folder, { desc = 'Remove workspace folder' }) - keymap('n', '<leader>cf', vim.cmd.ClangdSwitchSourceHeader, { desc = 'Switch source with header' }) - keymap( - 'n', - '<leader>wl', - function() print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end, - { desc = 'List workspace folders' } - ) -end - -return { - 'neovim/nvim-lspconfig', - dependencies = { - "hrsh7th/cmp-nvim-lsp", - 'j-hui/fidget.nvim', - }, - ft = { 'c', 'cpp', 'lua', 'zig' }, - opts = { - servers = { - lua_ls = { - settings = { - Lua = { - workspace = { checkThirdParty = false }, - telemetry = { enable = false }, - }, - }, - }, - clangd = { - settings = {}, - cmd = { "clangd", "--header-insertion=never" }, - }, - zls = { - settings = {}, - }, - }, - }, - config = function(_, opts) - local lspconfig = require('lspconfig'); - local capabilities = require('cmp_nvim_lsp').default_capabilities() - - for name, conf in pairs(opts.servers) do - lspconfig[name].setup { - capabilities = capabilities, - settings = conf.settings, - on_attach = function(client, bufnr) - local _, err = pcall(on_attach, client, bufnr) - if err then - vim.notify('[on_attach] error: ' .. err, vim.log.levels.ERROR) - else - vim.notify('[on_attach] ' .. client.name .. ' attached to buffer ' .. bufnr, vim.log.levels.INFO) - end - end, - } - end - - -- Autohighlight symbol under cursor - vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, { - callback = function() - local bufnr = vim.api.nvim_get_current_buf() - if next(vim.lsp.get_clients({ buffer = bufnr })) then - vim.lsp.buf.document_highlight() - end - end, - }) - -- Clear highlights when cursor moves - vim.api.nvim_create_autocmd({ "CursorMoved", "CursorMovedI" }, { - callback = function() - vim.lsp.buf.clear_references() - end, - }) - - end -} diff --git a/.config/nvim/lua/plugins/luadev.lua b/.config/nvim/lua/plugins/luadev.lua deleted file mode 100644 index 7011f66..0000000 --- a/.config/nvim/lua/plugins/luadev.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "folke/lazydev.nvim", - ft = "lua", - config = true, -} diff --git a/.config/nvim/lua/plugins/luasnip.lua b/.config/nvim/lua/plugins/luasnip.lua deleted file mode 100644 index 8ed8c24..0000000 --- a/.config/nvim/lua/plugins/luasnip.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - 'L3MON4D3/LuaSnip', - lazy = true, - dependencies = { 'rafamadriz/friendly-snippets' }, - keys = { - { '<M-h>', function() require('luasnip').jump(-1) end, mode = { 'i', 's' } }, - { '<M-l>', function() require('luasnip').jump(1) end, mode = { 'i', 's' } }, - }, - config = function() - require('luasnip.loaders.from_vscode').lazy_load() - end, -} diff --git a/.config/nvim/lua/plugins/multicursor.lua b/.config/nvim/lua/plugins/multicursor.lua deleted file mode 100644 index 75f8b6e..0000000 --- a/.config/nvim/lua/plugins/multicursor.lua +++ /dev/null @@ -1,61 +0,0 @@ -return { - "jake-stewart/multicursor.nvim", - branch = "1.0", - config = function() - local mc = require("multicursor-nvim") - mc.setup() - - local set = vim.keymap.set - - -- Add or skip cursor above/below the main cursor. - set({"n", "x"}, "<up>", function() mc.lineAddCursor(-1) end) - set({"n", "x"}, "<down>", function() mc.lineAddCursor(1) end) - set({"n", "x"}, "<leader><up>", function() mc.lineSkipCursor(-1) end) - set({"n", "x"}, "<leader><down>", function() mc.lineSkipCursor(1) end) - - -- Add or skip adding a new cursor by matching word/selection - set({"n", "x"}, "<leader>n", function() mc.matchAddCursor(1) end) - set({"n", "x"}, "<leader>s", function() mc.matchSkipCursor(1) end) - set({"n", "x"}, "<leader>N", function() mc.matchAddCursor(-1) end) - set({"n", "x"}, "<leader>S", function() mc.matchSkipCursor(-1) end) - - -- Add and remove cursors with control + left click. - set("n", "<c-leftmouse>", mc.handleMouse) - set("n", "<c-leftdrag>", mc.handleMouseDrag) - set("n", "<c-leftrelease>", mc.handleMouseRelease) - - -- Disable and enable cursors. - set({"n", "x"}, "<c-q>", mc.toggleCursor) - - -- Mappings defined in a keymap layer only apply when there are - -- multiple cursors. This lets you have overlapping mappings. - mc.addKeymapLayer(function(layerSet) - - -- Select a different cursor as the main one. - layerSet({"n", "x"}, "<left>", mc.prevCursor) - layerSet({"n", "x"}, "<right>", mc.nextCursor) - - -- Delete the main cursor. - layerSet({"n", "x"}, "<leader>x", mc.deleteCursor) - - -- Enable and clear cursors using escape. - layerSet("n", "<esc>", function() - if not mc.cursorsEnabled() then - mc.enableCursors() - else - mc.clearCursors() - end - end) - end) - - -- Customize how cursors look. - local hl = vim.api.nvim_set_hl - hl(0, "MultiCursorCursor", { reverse = true }) - hl(0, "MultiCursorVisual", { link = "Visual" }) - hl(0, "MultiCursorSign", { link = "SignColumn"}) - hl(0, "MultiCursorMatchPreview", { link = "Search" }) - hl(0, "MultiCursorDisabledCursor", { reverse = true }) - hl(0, "MultiCursorDisabledVisual", { link = "Visual" }) - hl(0, "MultiCursorDisabledSign", { link = "SignColumn"}) - end -} diff --git a/.config/nvim/lua/plugins/neogit.lua b/.config/nvim/lua/plugins/neogit.lua deleted file mode 100644 index 0f5f90e..0000000 --- a/.config/nvim/lua/plugins/neogit.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - "NeogitOrg/neogit", - dependencies = { - "nvim-lua/plenary.nvim", -- required - "sindrets/diffview.nvim", -- optional - Diff integration - "nvim-telescope/telescope.nvim", -- optional - }, -} diff --git a/.config/nvim/lua/plugins/pair.lua b/.config/nvim/lua/plugins/pair.lua deleted file mode 100644 index 5698563..0000000 --- a/.config/nvim/lua/plugins/pair.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - 'windwp/nvim-autopairs', - event = "InsertEnter", - config = true -} diff --git a/.config/nvim/lua/plugins/scroll.lua b/.config/nvim/lua/plugins/scroll.lua deleted file mode 100644 index 4de5939..0000000 --- a/.config/nvim/lua/plugins/scroll.lua +++ /dev/null @@ -1,23 +0,0 @@ -return { - "karb94/neoscroll.nvim", - opts = { - mappings = { -- Keys to be mapped to their corresponding default scrolling animation - '<C-u>', '<C-d>', - '<C-b>', '<C-f>', - '<C-y>', '<C-e>', - 'zt', 'zz', 'zb', - }, - hide_cursor = true, -- Hide cursor while scrolling - stop_eof = true, -- Stop at <EOF> when scrolling downwards - respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file - cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further - duration_multiplier = 1.0, -- Global duration multiplier - easing = 'linear', -- Default easing function - pre_hook = nil, -- Function to run before the scrolling animation starts - post_hook = nil, -- Function to run after the scrolling animation ends - performance_mode = false, -- Disable "Performance Mode" on all buffers. - ignored_events = { -- Events ignored while scrolling - 'WinScrolled', 'CursorMoved' - }, - }, -} diff --git a/.config/nvim/lua/plugins/signature.lua b/.config/nvim/lua/plugins/signature.lua deleted file mode 100644 index 0d0a174..0000000 --- a/.config/nvim/lua/plugins/signature.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - "ray-x/lsp_signature.nvim", - event = "InsertEnter", - opts = { - bind = true, - handler_opts = { - border = "rounded" - } - }, -} diff --git a/.config/nvim/lua/plugins/surround.lua b/.config/nvim/lua/plugins/surround.lua deleted file mode 100644 index 7504211..0000000 --- a/.config/nvim/lua/plugins/surround.lua +++ /dev/null @@ -1,21 +0,0 @@ -return { - "echasnovski/mini.surround", - event = "VeryLazy", - config = function() - require("mini.surround").setup({ - mappings = { - add = '', - delete = 'ds', - find = '', - find_left = '', - highlight = '', - replace = '', - update_n_lines = '', - - -- Add this only if you don't want to use extended mappings - suffix_last = '', - suffix_next = '', - } - }) - end -} diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua deleted file mode 100644 index 264a77b..0000000 --- a/.config/nvim/lua/plugins/telescope.lua +++ /dev/null @@ -1,45 +0,0 @@ -return { - 'nvim-telescope/telescope.nvim', - cmd = 'Telescope', - dependencies = { - 'nvim-lua/plenary.nvim', - }, - keys = function() - local lazy_telescope = function(builtin) - return function(...) - if builtin == 'find_files_custom' then - require('telescope.builtin').find_files({ find_command = {'rg', '--files', '--hidden', '-g', '!.git', '-g', '!external/', '-g', '!build/' }}) - else - require('telescope.builtin')[builtin](...) - end - end - end - return { - { '<leader>fb', lazy_telescope('buffers'), desc = 'Find buffers' }, - { '<leader>fd', lazy_telescope('diagnostics'), desc = 'Find diagnostics' }, - { '<leader>fF', lazy_telescope('git_files'), desc = 'Find Git files' }, - { '<leader>fG', lazy_telescope('git_status'), desc = 'Find Git status' }, - { '<leader>ff', lazy_telescope('find_files_custom'), desc = 'Find files' }, - { '<leader>fg', lazy_telescope('live_grep'), desc = 'Find files by content' }, - { '<leader>fh', lazy_telescope('help_tags'), desc = 'Find help tags' }, - { '<leader>fo', lazy_telescope('oldfiles'), desc = 'Find recently opened files' }, - { '<leader>fw', lazy_telescope('grep_string'), desc = 'Find word in buffer' }, - { '<leader>f/', lazy_telescope('current_buffer_fuzzy_find'), desc = 'Find fuzzy match in current buffer' }, - } - end, - config = function() - local telescope = require('telescope') - telescope.setup({ - defaults = { - mappings = { - i = { - ["<C-g>"] = require('telescope.actions').close, - }, - n = { - ["<C-g>"] = require('telescope.actions').close, - }, - }, - }, - }) - end, -} diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua deleted file mode 100644 index 268e13d..0000000 --- a/.config/nvim/lua/plugins/treesitter.lua +++ /dev/null @@ -1,24 +0,0 @@ -return { - 'nvim-treesitter/nvim-treesitter', - ft = { 'c', 'cpp', 'zig', 'lua', 'rust' }, - build = ':TSUpdate', - config = function() - require('nvim-treesitter.configs').setup { - -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'lua', 'rust', 'vimdoc', 'vim', 'zig' }, - - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, - - -- Automatically install missing parsers when entering buffer - -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally - auto_install = false, - - highlight = { - enable = true, - disable = function(_, bufnr) return vim.api.nvim_buf_line_count(bufnr) > 10000 end, - additional_vim_regex_highlighting = false, - }, - } - end, -} diff --git a/.config/nvim/lua/plugins/trouble.lua b/.config/nvim/lua/plugins/trouble.lua deleted file mode 100644 index 3741f30..0000000 --- a/.config/nvim/lua/plugins/trouble.lua +++ /dev/null @@ -1,37 +0,0 @@ -return { - "folke/trouble.nvim", - opts = {}, -- for default options, refer to the configuration section for custom setup. - cmd = "Trouble", - keys = { - { - "<leader>xx", - "<cmd>Trouble diagnostics toggle<cr>", - desc = "Diagnostics (Trouble)", - }, - { - "<leader>xX", - "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", - desc = "Buffer Diagnostics (Trouble)", - }, - { - "<leader>cs", - "<cmd>Trouble symbols toggle focus=false<cr>", - desc = "Symbols (Trouble)", - }, - { - "<leader>cl", - "<cmd>Trouble lsp toggle focus=false win.position=right<cr>", - desc = "LSP Definitions / references / ... (Trouble)", - }, - { - "<leader>xL", - "<cmd>Trouble loclist toggle<cr>", - desc = "Location List (Trouble)", - }, - { - "<leader>xQ", - "<cmd>Trouble qflist toggle<cr>", - desc = "Quickfix List (Trouble)", - }, - }, -} diff --git a/.config/nvim/lua/plugins/yank.lua b/.config/nvim/lua/plugins/yank.lua deleted file mode 100644 index cdf0f15..0000000 --- a/.config/nvim/lua/plugins/yank.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - "svban/YankAssassin.nvim", - event = "VeryLazy", - config = function() - require("YankAssassin").setup { - auto_normal = true, -- if true, autocmds are used. Whenever y is used in normal mode, the cursor doesn't move to start - auto_visual = true, -- if true, autocmds are used. Whenever y is used in visual mode, the cursor doesn't move to start - } - end, -} |
