diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-06-16 22:53:16 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-06-16 22:53:16 -0400 |
| commit | e72bc10296c0d4c145abd69a2b00bc8aad0004bb (patch) | |
| tree | af922e03fac17212db8da13937f4b2d562dd4037 /.config/nvim/lua/user/plugins | |
| parent | a65f3404028bd734e5deb793aa6b765c638a34db (diff) | |
reorg
Diffstat (limited to '.config/nvim/lua/user/plugins')
| -rw-r--r-- | .config/nvim/lua/user/plugins/cmp.lua | 53 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/colorscheme.lua | 6 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/comment.lua | 4 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/compile.lua | 15 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/cursorline.lua | 11 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/fidget.lua | 17 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/init.lua | 1 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/lspconfig.lua | 78 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/luadev.lua | 5 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/luasnip.lua | 12 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/mini.lua | 5 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/neogit.lua | 8 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/oil.lua | 7 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/telescope.lua | 54 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/treesitter.lua | 24 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/trouble.lua | 5 | ||||
| -rw-r--r-- | .config/nvim/lua/user/plugins/zig.lua | 5 |
17 files changed, 0 insertions, 310 deletions
diff --git a/.config/nvim/lua/user/plugins/cmp.lua b/.config/nvim/lua/user/plugins/cmp.lua deleted file mode 100644 index f515e17..0000000 --- a/.config/nvim/lua/user/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/user/plugins/colorscheme.lua b/.config/nvim/lua/user/plugins/colorscheme.lua deleted file mode 100644 index acdc3ee..0000000 --- a/.config/nvim/lua/user/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/user/plugins/comment.lua b/.config/nvim/lua/user/plugins/comment.lua deleted file mode 100644 index 4fbab38..0000000 --- a/.config/nvim/lua/user/plugins/comment.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - 'numToStr/Comment.nvim', - config = true, -} diff --git a/.config/nvim/lua/user/plugins/compile.lua b/.config/nvim/lua/user/plugins/compile.lua deleted file mode 100644 index 7b1ce10..0000000 --- a/.config/nvim/lua/user/plugins/compile.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - "ej-shafran/compile-mode.nvim", - dependencies = { - "nvim-lua/plenary.nvim", - { "m00qek/baleia.nvim", tag = "v1.3.0" }, - }, - config = function() - vim.keymap.set('n', '<leader>cc', ':vert Compile<Cr>', { desc = "Compile"}) - vim.keymap.set('n', '<leader>cr', ':vert Recompile<Cr>', { desc = "Recompile"}) - vim.g.compile_mode = { - -- to add ANSI escape code support, add: - baleia_setup = true, - } - end -} diff --git a/.config/nvim/lua/user/plugins/cursorline.lua b/.config/nvim/lua/user/plugins/cursorline.lua deleted file mode 100644 index 19839ce..0000000 --- a/.config/nvim/lua/user/plugins/cursorline.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - "ya2s/nvim-cursorline", - opts = { - cursorline = { enable = false }, -- I don't want this plugin fucking with my cursorline - cursorword = { - enable = true, - min_length = 3, - hl = { underline = true }, - } - } -} diff --git a/.config/nvim/lua/user/plugins/fidget.lua b/.config/nvim/lua/user/plugins/fidget.lua deleted file mode 100644 index facf28b..0000000 --- a/.config/nvim/lua/user/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/user/plugins/init.lua b/.config/nvim/lua/user/plugins/init.lua deleted file mode 100644 index a564707..0000000 --- a/.config/nvim/lua/user/plugins/init.lua +++ /dev/null @@ -1 +0,0 @@ -return {} diff --git a/.config/nvim/lua/user/plugins/lspconfig.lua b/.config/nvim/lua/user/plugins/lspconfig.lua deleted file mode 100644 index 2fcfa9b..0000000 --- a/.config/nvim/lua/user/plugins/lspconfig.lua +++ /dev/null @@ -1,78 +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 = {}, - }, - 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 - end -} diff --git a/.config/nvim/lua/user/plugins/luadev.lua b/.config/nvim/lua/user/plugins/luadev.lua deleted file mode 100644 index 7011f66..0000000 --- a/.config/nvim/lua/user/plugins/luadev.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "folke/lazydev.nvim", - ft = "lua", - config = true, -} diff --git a/.config/nvim/lua/user/plugins/luasnip.lua b/.config/nvim/lua/user/plugins/luasnip.lua deleted file mode 100644 index 8ed8c24..0000000 --- a/.config/nvim/lua/user/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/user/plugins/mini.lua b/.config/nvim/lua/user/plugins/mini.lua deleted file mode 100644 index 5698563..0000000 --- a/.config/nvim/lua/user/plugins/mini.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - 'windwp/nvim-autopairs', - event = "InsertEnter", - config = true -} diff --git a/.config/nvim/lua/user/plugins/neogit.lua b/.config/nvim/lua/user/plugins/neogit.lua deleted file mode 100644 index 0f5f90e..0000000 --- a/.config/nvim/lua/user/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/user/plugins/oil.lua b/.config/nvim/lua/user/plugins/oil.lua deleted file mode 100644 index 714a05f..0000000 --- a/.config/nvim/lua/user/plugins/oil.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - 'stevearc/oil.nvim', - ---@module 'oil' - opts = {}, - dependencies = { { "echasnovski/mini.icons", opts = {} } }, - lazy = false, -} diff --git a/.config/nvim/lua/user/plugins/telescope.lua b/.config/nvim/lua/user/plugins/telescope.lua deleted file mode 100644 index ab0e24f..0000000 --- a/.config/nvim/lua/user/plugins/telescope.lua +++ /dev/null @@ -1,54 +0,0 @@ -return { - 'nvim-telescope/telescope.nvim', - cmd = 'Telescope', - dependencies = { - 'nvim-lua/plenary.nvim', - { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }, - }, - keys = function() - local lazy_telescope = function(builtin) - return function(...) - require('telescope.builtin')[builtin](...) - 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>fF', lazy_telescope('find_files'), 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, - opts = function() - return { - extensions = { - fzf = { - fuzzy = true, - override_generic_sorter = true, - override_file_sorter = true, - case_mode = 'smart_case', - } - }, - } - 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, - }, - }, - }, - }) - telescope.load_extension('fzf') - end, -} diff --git a/.config/nvim/lua/user/plugins/treesitter.lua b/.config/nvim/lua/user/plugins/treesitter.lua deleted file mode 100644 index 268e13d..0000000 --- a/.config/nvim/lua/user/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/user/plugins/trouble.lua b/.config/nvim/lua/user/plugins/trouble.lua deleted file mode 100644 index 1e81a92..0000000 --- a/.config/nvim/lua/user/plugins/trouble.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "folke/trouble.nvim", - config = true, - cmd = "Trouble" -} diff --git a/.config/nvim/lua/user/plugins/zig.lua b/.config/nvim/lua/user/plugins/zig.lua deleted file mode 100644 index 394c450..0000000 --- a/.config/nvim/lua/user/plugins/zig.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "ziglang/zig.vim", - ft = "zig", -} - |
