diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2024-07-08 10:18:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-08 10:18:20 +0900 |
| commit | 9d8709a2ce4b3c58fdb309d28f2052834cb2a7fd (patch) | |
| tree | f0d59a5f86560722423eb4d704733bd8034e5b2c /config/nvim/lua/plugins/lsp-config.lua | |
| parent | 33db28c181f8324db90803af09344f0bcd8ff4d2 (diff) | |
| parent | fd0344c5e578cbd6b1a4a5dff18e927956157e02 (diff) | |
Merge pull request #374 from Fernu292/nvim-config
Nvim config
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 + } +} + |
