From d117ed8ecf01481811ee7c370a9435ddf7449597 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 2 Jul 2024 09:31:51 +0200 Subject: [PATCH] simple PHP parser and lsp config --- lua/kickstart/plugins/conform.lua | 2 +- lua/kickstart/plugins/lspconfig.lua | 1 + lua/kickstart/plugins/treesitter.lua | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/kickstart/plugins/conform.lua b/lua/kickstart/plugins/conform.lua index 0af1569..07bd84e 100644 --- a/lua/kickstart/plugins/conform.lua +++ b/lua/kickstart/plugins/conform.lua @@ -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], diff --git a/lua/kickstart/plugins/lspconfig.lua b/lua/kickstart/plugins/lspconfig.lua index 96cb10c..730b74e 100644 --- a/lua/kickstart/plugins/lspconfig.lua +++ b/lua/kickstart/plugins/lspconfig.lua @@ -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: diff --git a/lua/kickstart/plugins/treesitter.lua b/lua/kickstart/plugins/treesitter.lua index 4475507..a9ba9e9 100644 --- a/lua/kickstart/plugins/treesitter.lua +++ b/lua/kickstart/plugins/treesitter.lua @@ -23,6 +23,7 @@ return { 'markdown', 'gitcommit', 'gitignore', + 'php', }, -- Autoinstall languages that are not installed auto_install = true,