Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo on treesitter error message #72

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/nabla/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ utils.in_mathzone = function()
local buf = vim.api.nvim_get_current_buf()
local ok, parser = pcall(ts.get_parser, buf, "latex")
if not ok or not parser then
vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-tresitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})
vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-treesitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})

vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-tresitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})
vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-treesitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})
return
end
local root_tree = parser:parse()[1]
Expand Down Expand Up @@ -78,7 +78,7 @@ utils.get_all_mathzones = function()
local buf = vim.api.nvim_get_current_buf()
local ok, parser = pcall(ts.get_parser, buf, "latex")
if not ok or not parser then
vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-tresitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})
vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-treesitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})

return {}
end
Expand Down
2 changes: 1 addition & 1 deletion src/treesitter/detect_for_virt_lines.lua.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ utils.get_all_mathzones = function()
end

@warn_if_latex_is_not_installed+=
vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-tresitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})
vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-treesitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})

@get_tree_root_ts+=
local buf = vim.api.nvim_get_current_buf()
Expand Down
2 changes: 1 addition & 1 deletion src/treesitter/detect_mathzone.lua.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ utils.in_mathzone = function()
local ok, parser = pcall(ts.get_parser, buf, "latex")
if not ok or not parser then
@warn_if_latex_is_not_installed
vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-tresitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})
vim.api.nvim_echo({{"Latex parser not found. Please install with nvim-treesitter using \":TSInstall latex\".", "ErrorMsg"}}, true, {})
return
end
local root_tree = parser:parse()[1]
Expand Down