This commit is contained in:
mightypanders 2023-06-01 13:01:43 +02:00
commit 8b1abcfda9
2 changed files with 6 additions and 3 deletions

View File

@ -43,9 +43,10 @@ local lsp_flags = {
}
local capabilities = require('cmp_nvim_lsp').default_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
capabilities.textDocument.completion.completionItem.snippetSupport = true
require('mason-lspconfig').setup_handlers {
function(server_name)
require('lspconfig')[server_name].setup {
@ -93,14 +94,15 @@ require('mason-lspconfig').setup_handlers {
require('lspconfig')['html'].setup {
on_attach = on_attach,
flags = lsp_flags,
cmd = { "html-languageserver", "--stdio" },
cmd = { "vscode-html-language-server", "--stdio" },
filetypes = { "html" },
init_options = {
configurationSection = { "html", "css", "javascript" },
embeddedLanguages = {
css = true,
javascript = true
}
},
provideFormatter = true
},
settings = {}
}

View File

@ -58,6 +58,7 @@ require 'nvim-tree'.setup {
hijack_cursor = true,
auto_reload_on_write = true,
hijack_unnamed_buffer_when_opening = true,
sync_root_with_cwd = true,
diagnostics = {
enable = true,
icons = {