Add lsp for css html and php

This commit is contained in:
Marco 2023-10-16 17:14:21 +02:00
parent 9ae32ef0ef
commit c4a2316af9
4 changed files with 34 additions and 28 deletions

View File

@ -0,0 +1,7 @@
--Enable (broadcasting) snippet capability for completion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
require'lspconfig'.cssls.setup {
capabilities = capabilities,
}

View File

@ -0,0 +1,7 @@
--Enable (broadcasting) snippet capability for completion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
require'lspconfig'.html.setup {
capabilities = capabilities,
}

View File

@ -6,20 +6,11 @@ require'lspconfig'.lua_ls.setup {
client.config.settings = vim.tbl_deep_extend('force', client.config.settings, { client.config.settings = vim.tbl_deep_extend('force', client.config.settings, {
Lua = { Lua = {
runtime = { runtime = {
-- Tell the language server which version of Lua you're using
-- (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT' version = 'LuaJIT'
}, },
-- Make the server aware of Neovim runtime files
workspace = { workspace = {
checkThirdParty = false, checkThirdParty = false,
library = { library = vim.api.nvim_get_runtime_file("", true)
vim.env.VIMRUNTIME
-- "${3rd}/luv/library"
-- "${3rd}/busted/library",
}
-- or pull in all of 'runtimepath'. NOTE: this is a lot slower
-- library = vim.api.nvim_get_runtime_file("", true)
} }
} }
}) })

View File

@ -0,0 +1 @@
require'lspconfig'.phpactor.setup{}