add: config php support single file

This commit is contained in:
asep.komarudin 2024-04-19 19:59:30 +07:00
parent 68795d84bf
commit f00438c822
5 changed files with 42 additions and 22 deletions

View file

@ -1,11 +1,12 @@
return {
root_dir = require("lspconfig.util").root_pattern(
"build",
"compile_commands.json",
".git",
"mvnw",
"gradlew",
"pom.xml",
"build.gradle"
) or vim.loop.cwd() or vim.fn.getcwd(),
root_dir = require("lspconfig.util").root_pattern(
"build",
"compile_commands.json",
".git",
"mvnw",
"gradlew",
"pom.xml",
"build.gradle"
) or vim.loop.cwd() or vim.fn.getcwd(),
singe_file_support = true,
}

View file

@ -0,0 +1,6 @@
return {
cmd = { "intelephense", "--stdio" },
filetypes = { "php" },
root_dir = require("lspconfig.util").root_pattern("composer.json", ".git") or vim.loop.cwd() or vim.fn.getcwd(),
single_file_support = true,
}

View file

@ -1,14 +1,15 @@
return {
cmd = { "kotlin-language-server" },
filetypes = { "kotlin" },
root_dir = require("lspconfig.util").root_pattern(
"build.gradle.kts",
"build.gradle",
"settings.gradle",
"gradlew",
"pom.xml",
"build.gradle.kts",
"build.kts",
".git"
),
cmd = { "kotlin-language-server" },
filetypes = { "kotlin" },
root_dir = require("lspconfig.util").root_pattern(
"build.gradle.kts",
"build.gradle",
"settings.gradle",
"gradlew",
"pom.xml",
"build.gradle.kts",
"build.kts",
".git"
),
singe_file_support = true,
}

View file

@ -167,6 +167,18 @@ material_icon.setup({
cterm_color = "220",
name = "sqlfile",
},
["php"] = {
icon = "󰌟",
color = "#b589ec",
cterm_color = "220",
name = "phpfile",
},
["mp4"] = {
icon = "󰈫",
color = "#FC6411",
cterm_color = "220",
name = "mp4file",
},
["md"] = {
icon = "",
color = "#42a5f5",