diff options
| author | FernuDev <fernu292@gmail.com> | 2024-07-07 19:02:54 -0600 |
|---|---|---|
| committer | FernuDev <fernu292@gmail.com> | 2024-07-07 19:02:54 -0600 |
| commit | c72b006c67b48761657917c23dfc04dbf38c264e (patch) | |
| tree | 86c3d40d2e268be934a77100f187994ab410d465 /config/nvim/lua/plugins/lsp-config.lua | |
| parent | 33db28c181f8324db90803af09344f0bcd8ff4d2 (diff) | |
feat: add neovim configuration files
Diffstat (limited to 'config/nvim/lua/plugins/lsp-config.lua')
| -rw-r--r-- | config/nvim/lua/plugins/lsp-config.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/config/nvim/lua/plugins/lsp-config.lua b/config/nvim/lua/plugins/lsp-config.lua new file mode 100644 index 00000000..f41e7984 --- /dev/null +++ b/config/nvim/lua/plugins/lsp-config.lua @@ -0,0 +1,25 @@ +return { + { + "williamboman/mason.nvim", + config = function() + require("mason").setup() + end + }, + { + "williamboman/mason-lspconfig.nvim", + config = function() + require("mason-lspconfig").setup({ + ensure_installed = {"lua_ls", "clangd", "cmake", "cssls", "html"} + }) + end + }, + { + "neovim/nvim-lspconfig", + config = function() + local lspconfig = require("lspconfig") + lspconfig.lua_ls.setup({}) + vim.keymap.set('n', 'K', vim.lsp.buf.hover, {}) + end + } +} + |
