From de7ec62f5fde20ca1d7e53ed83a0077f8945f67c Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Wed, 14 Jul 2021 04:19:36 +0430 Subject: Added default formatters (#908) * added default formatters for a couple of langs * fix: sugesstions from tastyep * allow users to change default formatters * suggestion: mellow pointed out the telescope issue * we don't need to use formatter.setup --- ftplugin/zsh.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftplugin/zsh.lua') diff --git a/ftplugin/zsh.lua b/ftplugin/zsh.lua index 6960608b..750e8ede 100644 --- a/ftplugin/zsh.lua +++ b/ftplugin/zsh.lua @@ -24,7 +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/"), + root_dir = require("lspconfig").util.root_pattern ".git/", filetypes = { "zsh" }, settings = { rootMarkers = { ".git/" }, -- cgit v1.2.3