From ce690e550d0905a9c4f177064e709f5e22d95fe8 Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Sun, 26 Apr 2020 15:38:32 +0200 Subject: health(refactor): move checks inside health.lua --- lua/nvim-treesitter/highlight.lua | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lua/nvim-treesitter/highlight.lua') diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua index 04f21eb1..65ab48dc 100644 --- a/lua/nvim-treesitter/highlight.lua +++ b/lua/nvim-treesitter/highlight.lua @@ -25,20 +25,4 @@ function M.detach(bufnr) api.nvim_buf_set_option(buf, 'syntax', 'on') end -function M.checkhealth(lang) - local health_start = vim.fn["health#report_start"] - local health_ok = vim.fn['health#report_ok'] - local health_info = vim.fn['health#report_info'] - local health_warn = vim.fn['health#report_warn'] - local health_error = vim.fn['health#report_error'] - - if not queries.get_query(lang, "highlights") then - health_warn("No `highlights.scm` query found for " .. lang, { - "Open an issue at https://github.com/nvim-treesitter/nvim-treesitter" - }) - else - health_ok("`highlights.scm` found.") - end -end - return M -- cgit v1.2.3