1
Fork 0
dots/nvim/lua/plugins/lsp.lua
2024-04-19 19:17:03 +05:00

23 lines
664 B
Lua

return {
"neovim/nvim-lspconfig",
dependencies = {
"nvim-telescope/telescope.nvim"
},
config = function()
local lspconfig = require("lspconfig")
lspconfig.clangd.setup {}
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" }
}
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
callback = require("keymaps").lsp
})
end
}