simple PHP parser and lsp config

This commit is contained in:
Baipyrus 2024-07-02 09:31:51 +02:00
parent d1503995c8
commit d117ed8ecf
3 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ return {
-- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional
-- languages here or re-enable it for the disabled ones.
local disable_filetypes = { c = true, cpp = true }
local disable_filetypes = { c = true, cpp = true, php = true }
return {
timeout_ms = 500,
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],

View File

@ -166,6 +166,7 @@ return {
pyright = {},
svelte = {},
gopls = {},
intelephense = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
-- Some languages (like typescript) have entire language plugins that can be useful:

View File

@ -23,6 +23,7 @@ return {
'markdown',
'gitcommit',
'gitignore',
'php',
},
-- Autoinstall languages that are not installed
auto_install = true,