diff options
| author | Blake Romero <blake@blkrom.com> | 2025-01-24 13:36:21 +0000 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2025-01-24 13:37:17 +0000 |
| commit | 5a92ecea2a97f6631d53d4393f510463b6cd7aed (patch) | |
| tree | e572c32d5c01d46d4ba331d3fc7e01443432ef97 | |
| parent | 7a6f2d96c8e6352dec6bee749e99db3686f8924f (diff) | |
Add mason, lsp config, & ignore luarc json file
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | lua/plugins/mason.lua | 24 |
2 files changed, 25 insertions, 0 deletions
@@ -1 +1,2 @@ lazy-lock.json +.luarc.json diff --git a/lua/plugins/mason.lua b/lua/plugins/mason.lua new file mode 100644 index 0000000..f600a1a --- /dev/null +++ b/lua/plugins/mason.lua @@ -0,0 +1,24 @@ +return { + { + "williamboman/mason.nvim", + config = true + }, + { + "williamboman/mason-lspconfig.nvim", + config = true, + opts = { + ensure_installed = { "lua_ls" } + } + }, + { + "neovim/nvim-lspconfig", + config = function() + local lspconfig = require("lspconfig") + lspconfig.lua_ls.setup({}) + + vim.keymap.set('n', 'K', vim.lsp.buf.hover, {}) + vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {}) + vim.keymap.set({'n','v'}, '<leader>ca', vim.lsp.buf.code_action, {}) + end, + }, +} |
