From 4a3acb5408509badd21b263925c00cad6a7b43b9 Mon Sep 17 00:00:00 2001 From: Trey Bastian Date: Thu, 22 Jan 2026 09:59:48 +0000 Subject: re-added dap to my config with dapview over dap-ui --- lua/config/conform.lua | 1 - lua/config/dap.lua | 15 +++++++++++++++ lua/config/init.lua | 1 + lua/config/keys.lua | 2 -- lua/config/lsp.lua | 20 ++++++++------------ lua/config/plugins.lua | 5 +++++ lua/config/treesitter.lua | 1 - 7 files changed, 29 insertions(+), 16 deletions(-) create mode 100644 lua/config/dap.lua (limited to 'lua/config') diff --git a/lua/config/conform.lua b/lua/config/conform.lua index 984c728..9668b44 100644 --- a/lua/config/conform.lua +++ b/lua/config/conform.lua @@ -1,4 +1,3 @@ -local vim = vim vim.pack.add({ "https://github.com/stevearc/conform.nvim", }) diff --git a/lua/config/dap.lua b/lua/config/dap.lua new file mode 100644 index 0000000..6aa669b --- /dev/null +++ b/lua/config/dap.lua @@ -0,0 +1,15 @@ +vim.pack.add({ + "https://codeberg.org/mfussenegger/nvim-dap", + "https://github.com/igorlfs/nvim-dap-view", +}) + +local dap = require("dap") + +vim.keymap.set("n", "b", dap.toggle_breakpoint) +vim.keymap.set("n", "dc", dap.continue) +vim.keymap.set("n", "di", dap.step_into) +vim.keymap.set("n", "dso", dap.step_over) +vim.keymap.set("n", "do", dap.step_out) + +vim.keymap.set("n", "dv", "DapViewTogglej") +vim.keymap.set("n", "dw", "DapViewWatch") diff --git a/lua/config/init.lua b/lua/config/init.lua index 618e84a..2c8c94d 100644 --- a/lua/config/init.lua +++ b/lua/config/init.lua @@ -5,3 +5,4 @@ require("config.lsp") require("config.treesitter") require("config.telescope") require("config.conform") +require("config.dap") diff --git a/lua/config/keys.lua b/lua/config/keys.lua index cdb5cb4..19045c1 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -1,6 +1,4 @@ -- this is generic keymaps, plugin files might have their own -local vim = vim - vim.g.mapleader = " " vim.g.maplocalleader = "," diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 9420d30..f32b410 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -1,5 +1,3 @@ -local vim = vim - vim.pack.add({ { src = "https://github.com/saghen/blink.cmp", version = vim.version.range("*") }, "https://github.com/neovim/nvim-lspconfig", @@ -7,16 +5,14 @@ vim.pack.add({ }) vim.lsp.enable({ - "bashls", -- npm install -g bash-language-server - "lua_ls", -- os pkg manager lua-language-server - "sourcekit", -- swift bundled - "ts_ls", -- npm install -g typescript-language-server typescript - "css_ls", -- npm install -g vscode-css-languageservice - "emmet_language_server", -- npm install -g @olrtg/emmet-language-server - "svelte", -- npm install -g svelte-language-server - "astro", -- npm install -g @astrojs/language-server - -- https://github.com/eclipse-che4z/che-che4z-lsp-for-cobol/releases - -- extract from vsix file for your target platform + "bashls", + "lua_ls", + "sourcekit", + "ts_ls", + "css_ls", + "emmet_language_server", + "svelte", + "astro", "cobol_ls", }) diff --git a/lua/config/plugins.lua b/lua/config/plugins.lua index 7d3ebda..ec4f26a 100644 --- a/lua/config/plugins.lua +++ b/lua/config/plugins.lua @@ -5,7 +5,12 @@ vim.pack.add({ "https://github.com/jessarcher/vim-heritage", "https://github.com/windwp/nvim-autopairs", "https://github.com/kylechui/nvim-surround", + "https://github.com/f-person/auto-dark-mode.nvim", + "https://github.com/ellisonleao/gruvbox.nvim", + "https://github.com/MunifTanjim/nui.nvim", }) require("nvim-autopairs").setup() require("nvim-surround").setup() + +vim.cmd([[colorscheme gruvbox]]) diff --git a/lua/config/treesitter.lua b/lua/config/treesitter.lua index 030d987..653cb38 100644 --- a/lua/config/treesitter.lua +++ b/lua/config/treesitter.lua @@ -1,4 +1,3 @@ -local vim = vim vim.pack.add({ "https://github.com/windwp/nvim-ts-autotag", "https://github.com/HiPhish/rainbow-delimiters.nvim", -- cgit v1.2.3