aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua
diff options
context:
space:
mode:
authormoorenix <nicholasvmoore@gmail.com>2025-05-15 07:30:01 -0500
committerNick Moore <nicholasvmoore@gmail.com>2025-10-29 07:38:18 -0500
commit0b125b350a98c38c751e4fc40e0b7412c03e0aff (patch)
tree8b07d02d1ba4dc75ad4f935a555a5ecb75f24d84 /nvim/lua
parentb66e4efa7caae614335c694275133ef42384a98a (diff)
Adding window rules
Diffstat (limited to 'nvim/lua')
-rw-r--r--nvim/lua/custom/plugins/filetypes.lua15
-rw-r--r--nvim/lua/custom/plugins/harppon.lua37
-rw-r--r--nvim/lua/custom/plugins/init.lua5
-rw-r--r--nvim/lua/custom/plugins/remap.lua5
-rw-r--r--nvim/lua/custom/plugins/toggleterm.lua21
-rw-r--r--nvim/lua/custom/plugins/vim-be-good.lua5
-rw-r--r--nvim/lua/custom/plugins/vim-sleuth.lua3
-rw-r--r--nvim/lua/custom/plugins/which-key.lua3
-rw-r--r--nvim/lua/kickstart/health.lua52
-rw-r--r--nvim/lua/kickstart/plugins/autopairs.lua8
-rw-r--r--nvim/lua/kickstart/plugins/debug.lua148
-rw-r--r--nvim/lua/kickstart/plugins/gitsigns.lua61
-rw-r--r--nvim/lua/kickstart/plugins/indent_line.lua9
-rw-r--r--nvim/lua/kickstart/plugins/lint.lua60
-rw-r--r--nvim/lua/kickstart/plugins/neo-tree.lua25
15 files changed, 0 insertions, 457 deletions
diff --git a/nvim/lua/custom/plugins/filetypes.lua b/nvim/lua/custom/plugins/filetypes.lua
deleted file mode 100644
index 73c99f2..0000000
--- a/nvim/lua/custom/plugins/filetypes.lua
+++ /dev/null
@@ -1,15 +0,0 @@
-return {
- vim.filetype.add {
- extension = {
- yml = 'yaml.ansible',
- },
- },
-
- vim.filetype.add {
- extension = {
- jinja = 'jinja',
- jinja2 = 'jinja',
- j2 = 'jinja',
- },
- },
-}
diff --git a/nvim/lua/custom/plugins/harppon.lua b/nvim/lua/custom/plugins/harppon.lua
deleted file mode 100644
index 1fc29bb..0000000
--- a/nvim/lua/custom/plugins/harppon.lua
+++ /dev/null
@@ -1,37 +0,0 @@
-return {
- {
- 'ThePrimeagen/harpoon',
- branch = 'harpoon2',
- dependencies = { 'nvim-lua/plenary.nvim' },
- config = function()
- local harpoon = require 'harpoon'
- harpoon:setup()
- vim.keymap.set('n', '<leader>a', function()
- harpoon:list():add()
- end)
- vim.keymap.set('n', '<C-e>', function()
- harpoon.ui:toggle_quick_menu(harpoon:list())
- end)
- vim.keymap.set('n', '<leader>1', function()
- harpoon:list():select(1)
- end)
- vim.keymap.set('n', '<leader>2', function()
- harpoon:list():select(2)
- end)
- vim.keymap.set('n', '<leader>3', function()
- harpoon:list():select(3)
- end)
- vim.keymap.set('n', '<leader>4', 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)
- end,
- },
-}
diff --git a/nvim/lua/custom/plugins/init.lua b/nvim/lua/custom/plugins/init.lua
deleted file mode 100644
index be0eb9d..0000000
--- a/nvim/lua/custom/plugins/init.lua
+++ /dev/null
@@ -1,5 +0,0 @@
--- You can add your own plugins here or in other files in this directory!
--- I promise not to create any merge conflicts in this directory :)
---
--- See the kickstart.nvim README for more information
-return {}
diff --git a/nvim/lua/custom/plugins/remap.lua b/nvim/lua/custom/plugins/remap.lua
deleted file mode 100644
index 367d21c..0000000
--- a/nvim/lua/custom/plugins/remap.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-return {
- -- Scroll by half page and keep cursor in middle
- vim.keymap.set('n', '<C-d>', '<C-d>zz'),
- vim.keymap.set('n', '<C-u>', '<C-u>zz'),
-}
diff --git a/nvim/lua/custom/plugins/toggleterm.lua b/nvim/lua/custom/plugins/toggleterm.lua
deleted file mode 100644
index cc40f75..0000000
--- a/nvim/lua/custom/plugins/toggleterm.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-return {
- {
- 'akinsho/toggleterm.nvim',
- version = '*',
- opts = {
- start_in_insert = false,
- persistent_mode = true,
- shell = vim.o.shell,
- auto_scroll = true,
-
- -- Float options
- float_opts = {
- border = 'single',
- title_pos = 'center',
- },
-
- -- Bindings
- vim.keymap.set('n', '<leader>`', ':ToggleTerm direction=float<cr>', { desc = 'Open a floating terminal' }),
- },
- },
-}
diff --git a/nvim/lua/custom/plugins/vim-be-good.lua b/nvim/lua/custom/plugins/vim-be-good.lua
deleted file mode 100644
index 7e5c709..0000000
--- a/nvim/lua/custom/plugins/vim-be-good.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-return {
- {
- 'ThePrimeagen/vim-be-good',
- },
-}
diff --git a/nvim/lua/custom/plugins/vim-sleuth.lua b/nvim/lua/custom/plugins/vim-sleuth.lua
deleted file mode 100644
index 123ac6a..0000000
--- a/nvim/lua/custom/plugins/vim-sleuth.lua
+++ /dev/null
@@ -1,3 +0,0 @@
-return {
- { 'tpope/vim-sleuth' }, -- Detect tabstop and shiftwidth automatically
-}
diff --git a/nvim/lua/custom/plugins/which-key.lua b/nvim/lua/custom/plugins/which-key.lua
deleted file mode 100644
index 1f73adc..0000000
--- a/nvim/lua/custom/plugins/which-key.lua
+++ /dev/null
@@ -1,3 +0,0 @@
-return {
- -- { 'folke/which-key.nvim' },
-}
diff --git a/nvim/lua/kickstart/health.lua b/nvim/lua/kickstart/health.lua
deleted file mode 100644
index b59d086..0000000
--- a/nvim/lua/kickstart/health.lua
+++ /dev/null
@@ -1,52 +0,0 @@
---[[
---
--- This file is not required for your own configuration,
--- but helps people determine if their system is setup correctly.
---
---]]
-
-local check_version = function()
- local verstr = tostring(vim.version())
- if not vim.version.ge then
- vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
- return
- end
-
- if vim.version.ge(vim.version(), '0.10-dev') then
- vim.health.ok(string.format("Neovim version is: '%s'", verstr))
- else
- vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
- end
-end
-
-local check_external_reqs = function()
- -- Basic utils: `git`, `make`, `unzip`
- for _, exe in ipairs { 'git', 'make', 'unzip', 'rg' } do
- local is_executable = vim.fn.executable(exe) == 1
- if is_executable then
- vim.health.ok(string.format("Found executable: '%s'", exe))
- else
- vim.health.warn(string.format("Could not find executable: '%s'", exe))
- end
- end
-
- return true
-end
-
-return {
- check = function()
- vim.health.start 'kickstart.nvim'
-
- vim.health.info [[NOTE: Not every warning is a 'must-fix' in `:checkhealth`
-
- Fix only warnings for plugins and languages you intend to use.
- Mason will give warnings for languages that are not installed.
- You do not need to install, unless you want to use those languages!]]
-
- local uv = vim.uv or vim.loop
- vim.health.info('System Information: ' .. vim.inspect(uv.os_uname()))
-
- check_version()
- check_external_reqs()
- end,
-}
diff --git a/nvim/lua/kickstart/plugins/autopairs.lua b/nvim/lua/kickstart/plugins/autopairs.lua
deleted file mode 100644
index 386d392..0000000
--- a/nvim/lua/kickstart/plugins/autopairs.lua
+++ /dev/null
@@ -1,8 +0,0 @@
--- autopairs
--- https://github.com/windwp/nvim-autopairs
-
-return {
- 'windwp/nvim-autopairs',
- event = 'InsertEnter',
- opts = {},
-}
diff --git a/nvim/lua/kickstart/plugins/debug.lua b/nvim/lua/kickstart/plugins/debug.lua
deleted file mode 100644
index 753cb0c..0000000
--- a/nvim/lua/kickstart/plugins/debug.lua
+++ /dev/null
@@ -1,148 +0,0 @@
--- debug.lua
---
--- Shows how to use the DAP plugin to debug your code.
---
--- Primarily focused on configuring the debugger for Go, but can
--- be extended to other languages as well. That's why it's called
--- kickstart.nvim and not kitchen-sink.nvim ;)
-
-return {
- -- NOTE: Yes, you can install new plugins here!
- 'mfussenegger/nvim-dap',
- -- NOTE: And you can specify dependencies as well
- dependencies = {
- -- Creates a beautiful debugger UI
- 'rcarriga/nvim-dap-ui',
-
- -- Required dependency for nvim-dap-ui
- 'nvim-neotest/nvim-nio',
-
- -- Installs the debug adapters for you
- 'williamboman/mason.nvim',
- 'jay-babu/mason-nvim-dap.nvim',
-
- -- Add your own debuggers here
- 'leoluz/nvim-dap-go',
- },
- keys = {
- -- Basic debugging keymaps, feel free to change to your liking!
- {
- '<F5>',
- function()
- require('dap').continue()
- end,
- desc = 'Debug: Start/Continue',
- },
- {
- '<F1>',
- function()
- require('dap').step_into()
- end,
- desc = 'Debug: Step Into',
- },
- {
- '<F2>',
- function()
- require('dap').step_over()
- end,
- desc = 'Debug: Step Over',
- },
- {
- '<F3>',
- function()
- require('dap').step_out()
- end,
- desc = 'Debug: Step Out',
- },
- {
- '<leader>b',
- function()
- require('dap').toggle_breakpoint()
- end,
- desc = 'Debug: Toggle Breakpoint',
- },
- {
- '<leader>B',
- function()
- require('dap').set_breakpoint(vim.fn.input 'Breakpoint condition: ')
- end,
- desc = 'Debug: Set Breakpoint',
- },
- -- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception.
- {
- '<F7>',
- function()
- require('dapui').toggle()
- end,
- desc = 'Debug: See last session result.',
- },
- },
- config = function()
- local dap = require 'dap'
- local dapui = require 'dapui'
-
- require('mason-nvim-dap').setup {
- -- Makes a best effort to setup the various debuggers with
- -- reasonable debug configurations
- automatic_installation = true,
-
- -- You can provide additional configuration to the handlers,
- -- see mason-nvim-dap README for more information
- handlers = {},
-
- -- You'll need to check that you have the required things installed
- -- online, please don't ask me how to install them :)
- ensure_installed = {
- -- Update this to ensure that you have the debuggers for the langs you want
- 'delve',
- },
- }
-
- -- Dap UI setup
- -- For more information, see |:help nvim-dap-ui|
- dapui.setup {
- -- Set icons to characters that are more likely to work in every terminal.
- -- Feel free to remove or use ones that you like more! :)
- -- Don't feel like these are good choices.
- icons = { expanded = '▾', collapsed = '▸', current_frame = '*' },
- controls = {
- icons = {
- pause = '⏸',
- play = '▶',
- step_into = '⏎',
- step_over = '⏭',
- step_out = '⏮',
- step_back = 'b',
- run_last = '▶▶',
- terminate = '⏹',
- disconnect = '⏏',
- },
- },
- }
-
- -- Change breakpoint icons
- -- vim.api.nvim_set_hl(0, 'DapBreak', { fg = '#e51400' })
- -- vim.api.nvim_set_hl(0, 'DapStop', { fg = '#ffcc00' })
- -- local breakpoint_icons = vim.g.have_nerd_font
- -- and { Breakpoint = '', BreakpointCondition = '', BreakpointRejected = '', LogPoint = '', Stopped = '' }
- -- or { Breakpoint = '●', BreakpointCondition = '⊜', BreakpointRejected = '⊘', LogPoint = '◆', Stopped = '⭔' }
- -- for type, icon in pairs(breakpoint_icons) do
- -- local tp = 'Dap' .. type
- -- local hl = (type == 'Stopped') and 'DapStop' or 'DapBreak'
- -- vim.fn.sign_define(tp, { text = icon, texthl = hl, numhl = hl })
- -- end
-
- dap.listeners.after.event_initialized['dapui_config'] = dapui.open
- dap.listeners.before.event_terminated['dapui_config'] = dapui.close
- dap.listeners.before.event_exited['dapui_config'] = dapui.close
-
- -- Install golang specific config
- require('dap-go').setup {
- delve = {
- -- On Windows delve must be run attached or it crashes.
- -- See https://github.com/leoluz/nvim-dap-go/blob/main/README.md#configuring
- detached = vim.fn.has 'win32' == 0,
- },
- }
- end,
-}
diff --git a/nvim/lua/kickstart/plugins/gitsigns.lua b/nvim/lua/kickstart/plugins/gitsigns.lua
deleted file mode 100644
index cbbd22d..0000000
--- a/nvim/lua/kickstart/plugins/gitsigns.lua
+++ /dev/null
@@ -1,61 +0,0 @@
--- Adds git related signs to the gutter, as well as utilities for managing changes
--- NOTE: gitsigns is already included in init.lua but contains only the base
--- config. This will add also the recommended keymaps.
-
-return {
- {
- 'lewis6991/gitsigns.nvim',
- opts = {
- on_attach = function(bufnr)
- local gitsigns = require 'gitsigns'
-
- local function map(mode, l, r, opts)
- opts = opts or {}
- opts.buffer = bufnr
- vim.keymap.set(mode, l, r, opts)
- end
-
- -- Navigation
- map('n', ']c', function()
- if vim.wo.diff then
- vim.cmd.normal { ']c', bang = true }
- else
- gitsigns.nav_hunk 'next'
- end
- end, { desc = 'Jump to next git [c]hange' })
-
- map('n', '[c', function()
- if vim.wo.diff then
- vim.cmd.normal { '[c', bang = true }
- else
- gitsigns.nav_hunk 'prev'
- end
- end, { desc = 'Jump to previous git [c]hange' })
-
- -- Actions
- -- visual mode
- map('v', '<leader>hs', function()
- gitsigns.stage_hunk { vim.fn.line '.', vim.fn.line 'v' }
- end, { desc = 'git [s]tage hunk' })
- map('v', '<leader>hr', function()
- gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' }
- end, { desc = 'git [r]eset hunk' })
- -- normal mode
- map('n', '<leader>hs', gitsigns.stage_hunk, { desc = 'git [s]tage hunk' })
- map('n', '<leader>hr', gitsigns.reset_hunk, { desc = 'git [r]eset hunk' })
- map('n', '<leader>hS', gitsigns.stage_buffer, { desc = 'git [S]tage buffer' })
- map('n', '<leader>hu', gitsigns.stage_hunk, { desc = 'git [u]ndo stage hunk' })
- map('n', '<leader>hR', gitsigns.reset_buffer, { desc = 'git [R]eset buffer' })
- map('n', '<leader>hp', gitsigns.preview_hunk, { desc = 'git [p]review hunk' })
- map('n', '<leader>hb', gitsigns.blame_line, { desc = 'git [b]lame line' })
- map('n', '<leader>hd', gitsigns.diffthis, { desc = 'git [d]iff against index' })
- map('n', '<leader>hD', function()
- gitsigns.diffthis '@'
- end, { desc = 'git [D]iff against last commit' })
- -- Toggles
- map('n', '<leader>tb', gitsigns.toggle_current_line_blame, { desc = '[T]oggle git show [b]lame line' })
- map('n', '<leader>tD', gitsigns.preview_hunk_inline, { desc = '[T]oggle git show [D]eleted' })
- end,
- },
- },
-}
diff --git a/nvim/lua/kickstart/plugins/indent_line.lua b/nvim/lua/kickstart/plugins/indent_line.lua
deleted file mode 100644
index ed7f269..0000000
--- a/nvim/lua/kickstart/plugins/indent_line.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-return {
- { -- Add indentation guides even on blank lines
- 'lukas-reineke/indent-blankline.nvim',
- -- Enable `lukas-reineke/indent-blankline.nvim`
- -- See `:help ibl`
- main = 'ibl',
- opts = {},
- },
-}
diff --git a/nvim/lua/kickstart/plugins/lint.lua b/nvim/lua/kickstart/plugins/lint.lua
deleted file mode 100644
index 907c6bf..0000000
--- a/nvim/lua/kickstart/plugins/lint.lua
+++ /dev/null
@@ -1,60 +0,0 @@
-return {
-
- { -- Linting
- 'mfussenegger/nvim-lint',
- event = { 'BufReadPre', 'BufNewFile' },
- config = function()
- local lint = require 'lint'
- lint.linters_by_ft = {
- markdown = { 'markdownlint' },
- }
-
- -- To allow other plugins to add linters to require('lint').linters_by_ft,
- -- instead set linters_by_ft like this:
- -- lint.linters_by_ft = lint.linters_by_ft or {}
- -- lint.linters_by_ft['markdown'] = { 'markdownlint' }
- --
- -- However, note that this will enable a set of default linters,
- -- which will cause errors unless these tools are available:
- -- {
- -- clojure = { "clj-kondo" },
- -- dockerfile = { "hadolint" },
- -- inko = { "inko" },
- -- janet = { "janet" },
- -- json = { "jsonlint" },
- -- markdown = { "vale" },
- -- rst = { "vale" },
- -- ruby = { "ruby" },
- -- terraform = { "tflint" },
- -- text = { "vale" }
- -- }
- --
- -- You can disable the default linters by setting their filetypes to nil:
- -- lint.linters_by_ft['clojure'] = nil
- -- lint.linters_by_ft['dockerfile'] = nil
- -- lint.linters_by_ft['inko'] = nil
- -- lint.linters_by_ft['janet'] = nil
- -- lint.linters_by_ft['json'] = nil
- -- lint.linters_by_ft['markdown'] = nil
- -- lint.linters_by_ft['rst'] = nil
- -- lint.linters_by_ft['ruby'] = nil
- -- lint.linters_by_ft['terraform'] = nil
- -- lint.linters_by_ft['text'] = nil
-
- -- Create autocommand which carries out the actual linting
- -- on the specified events.
- local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true })
- vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWritePost', 'InsertLeave' }, {
- group = lint_augroup,
- callback = function()
- -- Only run the linter in buffers that you can modify in order to
- -- avoid superfluous noise, notably within the handy LSP pop-ups that
- -- describe the hovered symbol using Markdown.
- if vim.opt_local.modifiable:get() then
- lint.try_lint()
- end
- end,
- })
- end,
- },
-}
diff --git a/nvim/lua/kickstart/plugins/neo-tree.lua b/nvim/lua/kickstart/plugins/neo-tree.lua
deleted file mode 100644
index bd44226..0000000
--- a/nvim/lua/kickstart/plugins/neo-tree.lua
+++ /dev/null
@@ -1,25 +0,0 @@
--- Neo-tree is a Neovim plugin to browse the file system
--- https://github.com/nvim-neo-tree/neo-tree.nvim
-
-return {
- 'nvim-neo-tree/neo-tree.nvim',
- version = '*',
- dependencies = {
- 'nvim-lua/plenary.nvim',
- 'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
- 'MunifTanjim/nui.nvim',
- },
- cmd = 'Neotree',
- keys = {
- { '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
- },
- opts = {
- filesystem = {
- window = {
- mappings = {
- ['\\'] = 'close_window',
- },
- },
- },
- },
-}