2023-08-29 23:41:29 +00:00
|
|
|
return {
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-telescope/telescope.nvim"
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
local lspconfig = require("lspconfig")
|
|
|
|
|
2023-09-01 01:50:28 +00:00
|
|
|
lspconfig.clangd.setup {}
|
2023-08-29 23:41:29 +00:00
|
|
|
|
2024-04-19 14:17:03 +00:00
|
|
|
local emmet_capabilities = vim.lsp.protocol.make_client_capabilities()
|
|
|
|
emmet_capabilities.textDocument.completion.completionItem.snippetSupport = true
|
|
|
|
lspconfig.emmet_ls.setup {
|
|
|
|
capabilities = emmet_capabilities,
|
|
|
|
filetypes = { "html", "javascriptreact", "typescriptreact" }
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|