[vim] Add eslint and html LSP configs
This commit is contained in:
parent
945f30fc6c
commit
eb270c30bf
1 changed files with 10 additions and 5 deletions
|
@ -31,6 +31,16 @@ local on_attach = function(client, buffer_number)
|
||||||
vim.api.nvim_buf_set_option(buffer_number, "omnifunc", "v:lua.vim.lsp.omnifunc")
|
vim.api.nvim_buf_set_option(buffer_number, "omnifunc", "v:lua.vim.lsp.omnifunc")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
lspconfig.eslint.setup {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = cmp_capabilities,
|
||||||
|
}
|
||||||
|
|
||||||
|
lspconfig.html.setup {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = cmp_capabilities,
|
||||||
|
}
|
||||||
|
|
||||||
lspconfig.lua_ls.setup {
|
lspconfig.lua_ls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = cmp_capabilities,
|
capabilities = cmp_capabilities,
|
||||||
|
@ -47,11 +57,6 @@ lspconfig.lua_ls.setup {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
lspconfig.html.setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = cmp_capabilities,
|
|
||||||
}
|
|
||||||
|
|
||||||
lspconfig.tailwindcss.setup {
|
lspconfig.tailwindcss.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = cmp_capabilities,
|
capabilities = cmp_capabilities,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue