mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-01 21:14:29 +02:00
add: config php support single file
This commit is contained in:
parent
68795d84bf
commit
f00438c822
5 changed files with 42 additions and 22 deletions
|
@ -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,
|
||||
}
|
||||
|
|
6
lua/user/lsp/settings/intelephense.lua
Normal file
6
lua/user/lsp/settings/intelephense.lua
Normal 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,
|
||||
}
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue