2023-08-29 23:41:29 +00:00
|
|
|
return {
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-telescope/telescope.nvim"
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
local lspconfig = require("lspconfig")
|
|
|
|
|
2024-08-21 06:25:00 +00:00
|
|
|
local snippet_capabilities = vim.lsp.protocol.make_client_capabilities()
|
|
|
|
snippet_capabilities.textDocument.completion.completionItem.snippetSupport = true
|
2023-08-29 23:41:29 +00:00
|
|
|
|
2024-04-19 14:17:03 +00:00
|
|
|
lspconfig.emmet_ls.setup {
|
2024-08-21 06:25:00 +00:00
|
|
|
capabilities = snippet_capabilities
|
|
|
|
}
|
|
|
|
|
|
|
|
lspconfig.tailwindcss.setup {
|
|
|
|
capabilities = snippet_capabilities
|
|
|
|
}
|
|
|
|
|
|
|
|
lspconfig.cssls.setup {
|
|
|
|
capabilities = snippet_capabilities
|
2024-04-19 14:17:03 +00:00
|
|
|
}
|
|
|
|
|
2023-08-29 23:41:29 +00:00
|
|
|
vim.api.nvim_create_autocmd("LspAttach", {
|
|
|
|
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
|
|
|
|
callback = require("keymaps").lsp
|
|
|
|
})
|
|
|
|
end
|
|
|
|
}
|