diff options
| author | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-17 13:06:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-17 13:06:11 -0800 |
| commit | c1292d313ef81868ad829461bd6403106e80259e (patch) | |
| tree | bd3c9d173f4a62147c6500e752214986212e3f3e /lua/nvim_lsp/texlab.lua | |
| parent | Refactor docgen and add package.json support (#29) (diff) | |
| download | nvim-lspconfig-c1292d313ef81868ad829461bd6403106e80259e.tar nvim-lspconfig-c1292d313ef81868ad829461bd6403106e80259e.tar.gz nvim-lspconfig-c1292d313ef81868ad829461bd6403106e80259e.tar.bz2 nvim-lspconfig-c1292d313ef81868ad829461bd6403106e80259e.tar.lz nvim-lspconfig-c1292d313ef81868ad829461bd6403106e80259e.tar.xz nvim-lspconfig-c1292d313ef81868ad829461bd6403106e80259e.tar.zst nvim-lspconfig-c1292d313ef81868ad829461bd6403106e80259e.zip | |
Fix docs and add util.once (#31)
Diffstat (limited to 'lua/nvim_lsp/texlab.lua')
| -rw-r--r-- | lua/nvim_lsp/texlab.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/nvim_lsp/texlab.lua b/lua/nvim_lsp/texlab.lua index a9f35ee6..7580be3e 100644 --- a/lua/nvim_lsp/texlab.lua +++ b/lua/nvim_lsp/texlab.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 texlab_build_status = vim.tbl_add_reverse_lookup { Success = 0; Error = 1; @@ -37,7 +35,7 @@ skeleton.texlab = { default_config = { cmd = {"texlab"}; filetypes = {"tex", "bib"}; - root_dir = function() return cwd end; + root_dir = util.once(vim.loop.cwd()); log_level = lsp.protocol.MessageType.Warning; settings = { latex = { |
