diff options
| author | Trey Bastian <hello@treybastian.com> | 2026-01-22 09:59:48 +0000 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2026-01-22 09:59:48 +0000 |
| commit | 4a3acb5408509badd21b263925c00cad6a7b43b9 (patch) | |
| tree | c62c7bf28cb976cd5bce87e455dbf23a7631b250 /lua/config | |
| parent | 02400c25c84e71dc61e0d47f41822f234ca9897b (diff) | |
re-added dap to my config with dapview over dap-ui
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/conform.lua | 1 | ||||
| -rw-r--r-- | lua/config/dap.lua | 15 | ||||
| -rw-r--r-- | lua/config/init.lua | 1 | ||||
| -rw-r--r-- | lua/config/keys.lua | 2 | ||||
| -rw-r--r-- | lua/config/lsp.lua | 20 | ||||
| -rw-r--r-- | lua/config/plugins.lua | 5 | ||||
| -rw-r--r-- | lua/config/treesitter.lua | 1 |
7 files changed, 29 insertions, 16 deletions
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", "<leader>b", dap.toggle_breakpoint) +vim.keymap.set("n", "<leader>dc", dap.continue) +vim.keymap.set("n", "<leader>di", dap.step_into) +vim.keymap.set("n", "<leader>dso", dap.step_over) +vim.keymap.set("n", "<leader>do", dap.step_out) + +vim.keymap.set("n", "<leader>dv", "<CMD>DapViewToggle<CR><C-W>j") +vim.keymap.set("n", "<leader>dw", "<CMD>DapViewWatch<CR>") 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", |
