diff options
| author | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-14 17:14:53 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-14 17:14:53 -0800 |
| commit | 0ccd248ef958a8d27e752952a880d004078b4ae9 (patch) | |
| tree | 67f4afbe9bf69322c0481f00aaff171214487c05 /lua/nvim_lsp/skeleton.lua | |
| parent | Add github actions for docgen (#7) (diff) | |
| download | nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.gz nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.bz2 nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.lz nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.xz nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.zst nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.zip | |
Add ElmLS (#9)
- Initial add of elmLS support
- Removes unnecessary vim.schedule_wrap fn calls in elmls & clangd impls
- Add automatic installation for elmls and update docs.
- Sort server output in the README.
- Add commands for elmls for buffer and globally.
- [bugfix] Skeleton could've tried to attach even if root_dir was nil
TODO: check for updates and warn the user if there are updates when an elm server is started.
Co-authored-by: Seth Messer <seth.messer@gmail.com>
Diffstat (limited to 'lua/nvim_lsp/skeleton.lua')
| -rw-r--r-- | lua/nvim_lsp/skeleton.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/nvim_lsp/skeleton.lua b/lua/nvim_lsp/skeleton.lua index 9fa6f835..0d69fed0 100644 --- a/lua/nvim_lsp/skeleton.lua +++ b/lua/nvim_lsp/skeleton.lua @@ -130,9 +130,11 @@ function skeleton.__newindex(t, template_name, template) function manager.try_add() local root_dir = get_root_dir(api.nvim_buf_get_name(0), api.nvim_get_current_buf()) - print(api.nvim_get_current_buf(), root_dir) + if not root_dir then return end local id = manager.add(root_dir) - lsp.buf_attach_client(0, id) + if id then + lsp.buf_attach_client(0, id) + end end M.manager = manager |
