diff options
| -rw-r--r-- | README.md | 15 | ||||
| -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 | ||||
| -rw-r--r-- | nvim-pack-lock.json | 30 |
9 files changed, 69 insertions, 21 deletions
@@ -0,0 +1,15 @@ +# Trey's Neovim Config + +## LSP Installation +- bash - `npm install -g bash-language-server` +- lua - `brew install lua-language-server` +- swift - no install needed +- typescript - `npm install -g typescript-language-server` +- css - `npm install -g vscode-css-languuageservice` +- emmet - `npm install -g @olrtg/emmet-language-server` +- svelte - `npm install -g svelte-language-server` +- astro - `npm install -g @astrojs/language-server` +- cobol - download https://github.com/eclipse-che4z/che-che4z-lsp-for-cobol/releases extract from vsix file for target platform +- java - `brew install jdtls` + +Yes, I could make this a script... 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", diff --git a/nvim-pack-lock.json b/nvim-pack-lock.json index 3979197..4e25492 100644 --- a/nvim-pack-lock.json +++ b/nvim-pack-lock.json @@ -1,28 +1,48 @@ { "plugins": { + "auto-dark-mode.nvim": { + "rev": "e300259ec777a40b4b9e3c8e6ade203e78d15881", + "src": "https://github.com/f-person/auto-dark-mode.nvim" + }, "blink.cmp": { "rev": "b19413d214068f316c78978b08264ed1c41830ec", "src": "https://github.com/saghen/blink.cmp", "version": ">=0.0.0" }, "conform.nvim": { - "rev": "4b713b9da0061a54750bfed457e190459be28c7b", + "rev": "238f542a118984a88124fc915d5b981680418707", "src": "https://github.com/stevearc/conform.nvim" }, "friendly-snippets": { "rev": "572f566", "src": "https://github.com/rafamadriz/friendly-snippets" }, + "gruvbox.nvim": { + "rev": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437", + "src": "https://github.com/ellisonleao/gruvbox.nvim" + }, + "nui.nvim": { + "rev": "de740991c12411b663994b2860f1a4fd0937c130", + "src": "https://github.com/MunifTanjim/nui.nvim" + }, "nvim-autopairs": { "rev": "c2a0dd0d931d0fb07665e1fedb1ea688da3b80b4", "src": "https://github.com/windwp/nvim-autopairs" }, + "nvim-dap": { + "rev": "085386b9359ddf8d76ad89b98973b8e332dc5ba3", + "src": "https://codeberg.org/mfussenegger/nvim-dap" + }, + "nvim-dap-view": { + "rev": "bd667e3a2d44a2ad6de2ba416247fc5072438bff", + "src": "https://github.com/igorlfs/nvim-dap-view" + }, "nvim-jack-in": { - "rev": "85120eb606ea2c8bfbce2d9c759656eeee443915", + "rev": "e333b4eb63f36c937dd2703c7d2caf467289fc5e", "src": "https://tangled.org/treybastian.com/nvim-jack-in" }, "nvim-lspconfig": { - "rev": "41ceb6bba3a40128b7841f5b7f5a9dae7201e823", + "rev": "92ee7d42320edfbb81f3cad851314ab197fa324a", "src": "https://github.com/neovim/nvim-lspconfig" }, "nvim-surround": { @@ -54,11 +74,11 @@ "src": "https://github.com/neurosnap/qfutil.nvim" }, "rainbow-delimiters.nvim": { - "rev": "8aafe2cbd89cd4090f573a98cab6b20366576fde", + "rev": "d6b802552cbe7d643a3b6b31f419c248d1f1e220", "src": "https://github.com/HiPhish/rainbow-delimiters.nvim" }, "telescope.nvim": { - "rev": "3333a52ff548ba0a68af6d8da1e54f9cd96e9179", + "rev": "a8c2223ea6b185701090ccb1ebc7f4e41c4c9784", "src": "https://github.com/nvim-telescope/telescope.nvim" }, "vim-eunuch": { |
