diff options
author | Javier Lopez <graulopezjavier@gmail.com> | 2021-10-05 07:05:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 05:05:33 -0700 |
commit | 0a7a215aa6bac6e5569d47a3ad5f496d64397f8e (patch) | |
tree | 7d1e6a5918e21f4a6e9745935f40ecb2e925c22e | |
parent | 6d8cafed40a308543a077dbe32d9fd030e69870d (diff) | |
download | rneovim-0a7a215aa6bac6e5569d47a3ad5f496d64397f8e.tar.gz rneovim-0a7a215aa6bac6e5569d47a3ad5f496d64397f8e.tar.bz2 rneovim-0a7a215aa6bac6e5569d47a3ad5f496d64397f8e.zip |
fix(healthcheck): update builtins to the new convention #15914
Adjust some builtin healthchecks to use Lua, after #15259
-rw-r--r-- | runtime/autoload/health/lsp.vim | 5 | ||||
-rw-r--r-- | runtime/autoload/health/treesitter.vim | 5 | ||||
-rw-r--r-- | runtime/lua/vim/lsp/health.lua | 2 | ||||
-rw-r--r-- | runtime/lua/vim/treesitter/health.lua | 2 |
4 files changed, 2 insertions, 12 deletions
diff --git a/runtime/autoload/health/lsp.vim b/runtime/autoload/health/lsp.vim deleted file mode 100644 index 2d2ba91cdf..0000000000 --- a/runtime/autoload/health/lsp.vim +++ /dev/null @@ -1,5 +0,0 @@ -function! health#lsp#check() abort - call health#report_start('Checking language server client configuration') - lua require 'vim.lsp.health'.check_health() -endfunction - diff --git a/runtime/autoload/health/treesitter.vim b/runtime/autoload/health/treesitter.vim deleted file mode 100644 index 5f167310ce..0000000000 --- a/runtime/autoload/health/treesitter.vim +++ /dev/null @@ -1,5 +0,0 @@ -function! health#treesitter#check() abort - call health#report_start('Checking treesitter configuration') - lua require 'vim.treesitter.health'.check_health() -endfunction - diff --git a/runtime/lua/vim/lsp/health.lua b/runtime/lua/vim/lsp/health.lua index 855679a2df..ed3eea59df 100644 --- a/runtime/lua/vim/lsp/health.lua +++ b/runtime/lua/vim/lsp/health.lua @@ -1,7 +1,7 @@ local M = {} --- Performs a healthcheck for LSP -function M.check_health() +function M.check() local report_info = vim.fn['health#report_info'] local report_warn = vim.fn['health#report_warn'] diff --git a/runtime/lua/vim/treesitter/health.lua b/runtime/lua/vim/treesitter/health.lua index e031ba1bd6..53ccc6e88d 100644 --- a/runtime/lua/vim/treesitter/health.lua +++ b/runtime/lua/vim/treesitter/health.lua @@ -9,7 +9,7 @@ function M.list_parsers() end --- Performs a healthcheck for treesitter integration -function M.check_health() +function M.check() local report_info = vim.fn['health#report_info'] local report_ok = vim.fn['health#report_ok'] local report_error = vim.fn['health#report_error'] |