mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-02 00:56:02 +02:00
Set root_dir for efm-langserver configurations (#899)
This commit is contained in:
parent
abdf383aa9
commit
ab103baf51
4 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,7 @@ if not require("lv-utils").check_lsp_client_active "efm" then
|
|||
-- init_options = {initializationOptions},
|
||||
cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" },
|
||||
init_options = { documentFormatting = true, codeAction = false },
|
||||
root_dir = require("lspconfig").util.root_pattern(".git/", "requirements.txt"),
|
||||
filetypes = { "python" },
|
||||
settings = {
|
||||
rootMarkers = { ".git/", "requirements.txt" },
|
||||
|
|
|
@ -26,6 +26,7 @@ if not require("lv-utils").check_lsp_client_active "efm" then
|
|||
-- init_options = {initializationOptions},
|
||||
cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" },
|
||||
init_options = { documentFormatting = true, codeAction = false },
|
||||
root_dir = require("lspconfig").util.root_pattern(".git/"),
|
||||
filetypes = { "sh" },
|
||||
settings = {
|
||||
rootMarkers = { ".git/" },
|
||||
|
|
|
@ -24,6 +24,7 @@ if not require("lv-utils").check_lsp_client_active "efm" then
|
|||
-- init_options = {initializationOptions},
|
||||
cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" },
|
||||
init_options = { documentFormatting = true, codeAction = false },
|
||||
root_dir = require("lspconfig").util.root_pattern(".git/"),
|
||||
filetypes = { "zsh" },
|
||||
settings = {
|
||||
rootMarkers = { ".git/" },
|
||||
|
|
|
@ -21,6 +21,7 @@ M.setup = function()
|
|||
-- init_options = {initializationOptions},
|
||||
cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" },
|
||||
init_options = { documentFormatting = true, codeAction = false },
|
||||
root_dir = require("lspconfig").util.root_pattern(".git/", "package.json"),
|
||||
filetypes = {
|
||||
"vue",
|
||||
"javascript",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue