nvim: lsp: add HTML, CSS, JS, JSON
This commit is contained in:
parent
b72fab5c29
commit
14ad39e5c5
|
@ -83,6 +83,18 @@ packer.use {
|
|||
require('lspconfig')['lemminx'].setup {
|
||||
capabilities = capabilities
|
||||
}
|
||||
require('lspconfig')['html'].setup {
|
||||
capabilities = capabilities
|
||||
}
|
||||
require('lspconfig')['cssls'].setup {
|
||||
capabilities = capabilities
|
||||
}
|
||||
require('lspconfig')['eslint'].setup {
|
||||
capabilities = capabilities
|
||||
}
|
||||
require('lspconfig')['jsonls'].setup {
|
||||
capabilities = capabilities
|
||||
}
|
||||
|
||||
cmp.setup.filetype('lua', {
|
||||
sources = cmp.config.sources({
|
||||
|
|
|
@ -103,5 +103,21 @@ packer.use {
|
|||
},
|
||||
on_attach = on_attach
|
||||
}
|
||||
|
||||
require'lspconfig'.html.setup{
|
||||
on_attach = on_attach
|
||||
}
|
||||
|
||||
require'lspconfig'.cssls.setup{
|
||||
on_attach = on_attach
|
||||
}
|
||||
|
||||
require'lspconfig'.eslint.setup{
|
||||
on_attach = on_attach
|
||||
}
|
||||
|
||||
require'lspconfig'.jsonls.setup{
|
||||
on_attach = on_attach
|
||||
}
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user