summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/locals.lua
diff options
context:
space:
mode:
authorKiyan Yazdani <yazdani.kiyan@protonmail.com>2020-04-26 16:52:41 +0200
committerGitHub <noreply@github.com>2020-04-26 16:52:41 +0200
commitefd363f810883d13102da6e1965288f1b36f35d9 (patch)
treeaacd751550ad35831c1ef087893436d142ce8e03 /lua/nvim-treesitter/locals.lua
parentf8b39e1d3ad36c2e5d6eb6f51983275ecc9145f0 (diff)
parentce690e550d0905a9c4f177064e709f5e22d95fe8 (diff)
Merge pull request #28 from vigoux/checkhealth-highlight
Add highlight to healthchecks
Diffstat (limited to 'lua/nvim-treesitter/locals.lua')
-rw-r--r--lua/nvim-treesitter/locals.lua16
1 files changed, 0 insertions, 16 deletions
diff --git a/lua/nvim-treesitter/locals.lua b/lua/nvim-treesitter/locals.lua
index 1e19fcd4..3e517454 100644
--- a/lua/nvim-treesitter/locals.lua
+++ b/lua/nvim-treesitter/locals.lua
@@ -10,22 +10,6 @@ local M = {
locals={}
}
-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, "locals") then
- health_warn("No `locals.scm` query found for " .. lang, {
- "Open an issue at https://github.com/nvim-treesitter/nvim-treesitter"
- })
- else
- health_ok("`locals.scm` found.")
- end
-end
-
function M.collect_locals(bufnr)
local ft = api.nvim_buf_get_option(bufnr, "ft")
if not ft then return end