From c1292d313ef81868ad829461bd6403106e80259e Mon Sep 17 00:00:00 2001 From: Ashkan Kiani Date: Sun, 17 Nov 2019 13:06:11 -0800 Subject: Fix docs and add util.once (#31) --- lua/nvim_lsp/bashls.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lua/nvim_lsp/bashls.lua') diff --git a/lua/nvim_lsp/bashls.lua b/lua/nvim_lsp/bashls.lua index c34affef..a82e16a0 100644 --- a/lua/nvim_lsp/bashls.lua +++ b/lua/nvim_lsp/bashls.lua @@ -2,8 +2,6 @@ local skeleton = require 'nvim_lsp/skeleton' local util = require 'nvim_lsp/util' local lsp = vim.lsp -local cwd = vim.loop.cwd() - local server_name = "bashls" local bin_name = "bash-language-server" @@ -17,7 +15,7 @@ skeleton[server_name] = { default_config = { cmd = {"bash-language-server", "start"}; filetypes = {"sh"}; - root_dir = function() return cwd end; + root_dir = util.once(vim.loop.cwd()); log_level = lsp.protocol.MessageType.Warning; settings = {}; }; -- cgit v1.2.3-70-g09d2