diff options
author | awy <awy@awy.one> | 2024-11-24 21:59:54 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2024-11-24 21:59:54 +0300 |
commit | 13fbd5bc4ecf15e8d9b9578e03f83669f218ee32 (patch) | |
tree | 2716c11b36383c02a155dd667c7fa59ae698a350 /.config/nvim/lua/plugins/lsp-config.lua | |
parent | 534aa3ce4c7c35d8f5e325ba27ec8803488a41f3 (diff) |
neovim cfg
Diffstat (limited to '.config/nvim/lua/plugins/lsp-config.lua')
-rw-r--r-- | .config/nvim/lua/plugins/lsp-config.lua | 28 |
1 files changed, 28 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 0000000..7178d3e --- /dev/null +++ b/.config/nvim/lua/plugins/lsp-config.lua @@ -0,0 +1,28 @@ +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", "html", "cssls" } + }) + end + }, + { + "neovim/nvim-lspconfig", + config = function() + local lspconfig = require("lspconfig") + local capabilities = vim.lsp.protocol.make_client_capabilities() + capabilities.textDocument.completion.completionItem.snippetSupport = true + lspconfig.lua_ls.setup({}) + lspconfig.clangd.setup({}) + lspconfig.html.setup({capabilities = capabilities,}) + lspconfig.cssls.setup({capabilities = capabilities,}) + end + } +} |