29 lines
732 B
Lua
29 lines
732 B
Lua
return {
|
|
"neovim/nvim-lspconfig",
|
|
dependencies = {
|
|
"nvim-telescope/telescope.nvim"
|
|
},
|
|
config = function()
|
|
local lspconfig = require("lspconfig")
|
|
|
|
local snippet_capabilities = vim.lsp.protocol.make_client_capabilities()
|
|
snippet_capabilities.textDocument.completion.completionItem.snippetSupport = true
|
|
|
|
lspconfig.emmet_ls.setup {
|
|
capabilities = snippet_capabilities
|
|
}
|
|
|
|
lspconfig.tailwindcss.setup {
|
|
capabilities = snippet_capabilities
|
|
}
|
|
|
|
lspconfig.cssls.setup {
|
|
capabilities = snippet_capabilities
|
|
}
|
|
|
|
vim.api.nvim_create_autocmd("LspAttach", {
|
|
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
|
|
callback = require("keymaps").lsp
|
|
})
|
|
end
|
|
}
|