summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/null-ls/services.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/lsp/null-ls/services.lua')
-rw-r--r--.config/nvim/lua/lsp/null-ls/services.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/lua/lsp/null-ls/services.lua b/.config/nvim/lua/lsp/null-ls/services.lua
index c62fc70..ef9e7d2 100644
--- a/.config/nvim/lua/lsp/null-ls/services.lua
+++ b/.config/nvim/lua/lsp/null-ls/services.lua
@@ -4,8 +4,8 @@ local function find_root_dir()
local util = require "lspconfig/util"
local lsp_utils = require "lsp.utils"
- local status_ok, ts_client = lsp_utils.is_client_active "typescript"
- if status_ok then
+ local ts_client = lsp_utils.is_client_active "typescript"
+ if ts_client then
return ts_client.config.root_dir
end
local dirname = vim.fn.expand "%:p:h"