diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2026-04-18 04:56:58 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2026-04-18 04:56:58 -0500 |
| commit | 7a0e87bdfb43c93ea44010f3917bb9a747eb46cf (patch) | |
| tree | d3e2aec5d16b919b7ae83888090c1e742dd88d25 /lua/config/packages/lsp.lua | |
| parent | 268cce40329eb3a91665ebe3ce65a0aa7b2c692e (diff) | |
| download | nvim-main.tar.gz | |
Diffstat (limited to 'lua/config/packages/lsp.lua')
| -rw-r--r-- | lua/config/packages/lsp.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/config/packages/lsp.lua b/lua/config/packages/lsp.lua new file mode 100644 index 0000000..9d2ff0d --- /dev/null +++ b/lua/config/packages/lsp.lua @@ -0,0 +1,16 @@ +vim.pack.add({ gh("neovim/nvim-lspconfig") }) + +local lspservers = { + "basedpyright", + "ruff", + "clangd", + "rust_analyzer", + "lua_ls", + "zls", +} +vim.lsp.enable(lspservers) + +vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, { desc = "[R]e[n]ame" }) +vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, { desc = "[C]ode [A]ction" }) +vim.keymap.set("n", "K", vim.lsp.buf.hover, { desc = "Hover Documentation" }) +vim.keymap.set("n", "<leader>K", vim.lsp.buf.signature_help, { desc = "Signature Documentation" }) |
