summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2025-10-06 23:02:57 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2025-10-06 23:02:57 -0400
commita49fcc782ad4e84ae68c69393604f2702da913b9 (patch)
tree8795b5092bd594122fab905e45ed8b342a917cfc /.config/nvim/after/plugin
parentbb4010e31c79d2716098843f7fe9b38c969f0950 (diff)
Updated Neovim Config
Diffstat (limited to '.config/nvim/after/plugin')
-rw-r--r--.config/nvim/after/plugin/harpoon.lua41
-rw-r--r--.config/nvim/after/plugin/lsp.lua32
-rw-r--r--.config/nvim/after/plugin/mason.lua1
-rw-r--r--.config/nvim/after/plugin/nvim-dap-lldb.lua35
-rw-r--r--.config/nvim/after/plugin/telescope.lua6
-rw-r--r--.config/nvim/after/plugin/treesitter.lua21
6 files changed, 0 insertions, 136 deletions
diff --git a/.config/nvim/after/plugin/harpoon.lua b/.config/nvim/after/plugin/harpoon.lua
deleted file mode 100644
index 08b092a..0000000
--- a/.config/nvim/after/plugin/harpoon.lua
+++ /dev/null
@@ -1,41 +0,0 @@
-local harpoon = require("harpoon")
-
--- REQUIRED
-harpoon:setup()
--- REQUIRED
-
-vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end)
---vim.keymap.set("n", "<leader>q", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
-
-vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
-vim.keymap.set("n", "<C-t>", function() harpoon:list():select(2) end)
-vim.keymap.set("n", "<C-n>", function() harpoon:list():select(3) end)
-vim.keymap.set("n", "<C-s>", function() harpoon:list():select(4) end)
-
--- Toggle previous & next buffers stored within Harpoon list
-vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
-vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)
-
-local harpoon = require('harpoon')
-harpoon:setup({})
-
--- basic telescope configuration
-local conf = require("telescope.config").values
-local function toggle_telescope(harpoon_files)
- local file_paths = {}
- for _, item in ipairs(harpoon_files.items) do
- table.insert(file_paths, item.value)
- end
-
- require("telescope.pickers").new({}, {
- prompt_title = "Harpoon",
- finder = require("telescope.finders").new_table({
- results = file_paths,
- }),
- previewer = conf.file_previewer({}),
- sorter = conf.generic_sorter({}),
- }):find()
-end
-
-vim.keymap.set("n", "<C-e>", function() toggle_telescope(harpoon:list()) end,
- { desc = "Open harpoon window" })
diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua
deleted file mode 100644
index 1139e3e..0000000
--- a/.config/nvim/after/plugin/lsp.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-local lsp = require('lsp-zero')
-
-local cmp = require('cmp')
-local cmp_action = require('lsp-zero').cmp_action()
-
-cmp.setup({
- window = {
- completion = cmp.config.window.bordered(),
- documentation = cmp.config.window.bordered(),
- },
- mapping = cmp.mapping.preset.insert({
- ['<C-Space>'] = cmp.mapping.complete(),
- ['<C-n>'] = cmp_action.luasnip_jump_forward(),
- ['<C-p>'] = cmp_action.luasnip_jump_backward(),
- ['<C-u>'] = cmp.mapping.scroll_docs(-4),
- ['<C-d>'] = cmp.mapping.scroll_docs(4),
- })
-})
-
-require('lspconfig').clangd.setup({
- on_new_config = function(new_config, new_cwd)
- local status, cmake = pcall(require, "cmake-tools")
- if status then
- cmake.clangd_on_new_config(new_config)
- end
- end,
-})
-require('lspconfig').gopls.setup({})
-require('lspconfig').texlab.setup({})
-require('lspconfig').pyright.setup({})
-require('lspconfig').marksman.setup({})
-
diff --git a/.config/nvim/after/plugin/mason.lua b/.config/nvim/after/plugin/mason.lua
deleted file mode 100644
index ac26661..0000000
--- a/.config/nvim/after/plugin/mason.lua
+++ /dev/null
@@ -1 +0,0 @@
-require("mason").setup()
diff --git a/.config/nvim/after/plugin/nvim-dap-lldb.lua b/.config/nvim/after/plugin/nvim-dap-lldb.lua
deleted file mode 100644
index 7123093..0000000
--- a/.config/nvim/after/plugin/nvim-dap-lldb.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-local dap = require('dap')
-dap.adapters.lldb = {
- type = 'executable',
- command = os.getenv( "HOME" ) .. '/.local/share/nvim/mason/bin/codelldb', -- adjust as needed, must be absolute path
- name = 'lldb'
-}
-
-local dap = require('dap')
-dap.configurations.c = {
- {
- name = 'Launch',
- type = 'lldb',
- request = 'launch',
- program = function()
- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/build/', 'file')
- end,
- cwd = '${workspaceFolder}',
- stopOnEntry = false,
- args = {},
-
- -- 💀
- -- if you change `runInTerminal` to true, you might need to change the yama/ptrace_scope setting:
- --
- -- echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
- --
- -- Otherwise you might get the following error:
- --
- -- Error on launch: Failed to attach to the target process
- --
- -- But you should be aware of the implications:
- -- https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
- -- runInTerminal = false,
- },
-}
-dap.configurations.cpp = dap.configurations.c
diff --git a/.config/nvim/after/plugin/telescope.lua b/.config/nvim/after/plugin/telescope.lua
deleted file mode 100644
index 87c9ea6..0000000
--- a/.config/nvim/after/plugin/telescope.lua
+++ /dev/null
@@ -1,6 +0,0 @@
-local builtin = require('telescope.builtin')
-vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
-vim.keymap.set('n', '<leader>fp', builtin.git_files, {})
-vim.keymap.set('n', '<leader>ps', function()
- builtin.grep_string({ search = vim.fn.input("Grep > ") })
-end)
diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua
deleted file mode 100644
index b90bdcd..0000000
--- a/.config/nvim/after/plugin/treesitter.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-require'nvim-treesitter.configs'.setup {
- -- A list of parser names, or "all" (the five listed parsers should always be installed)
- ensure_installed = { "c", "lua", "vim", "vimdoc", "query" },
-
- -- 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 = true,
-
- highlight = {
- enable = true,
-
- -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
- -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
- -- Using this option may slow down your editor, and you may see some duplicate highlights.
- -- Instead of true it can also be a list of languages
- additional_vim_regex_highlighting = false,
- },
-}