You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK tree-sitter found 0.23.0 (parser generator, only needed for :TSInstallFromGrammar)
OK node found v18.20.4 (only needed for :TSInstallFromGrammar)
OK git executable found.
OK cc executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: Apple clang version 15.0.0 (clang-1500.3.9.4)
OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
OS Info:
{
machine = "arm64",
release = "23.5.0",
sysname = "Darwin",
version = "Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000"
} ~
Parser/Features H L F I J
c ✓ ✓ ✓ ✓ ✓
cpp ✓ ✓ ✓ ✓ ✓
fortran ✓ . ✓ ✓ ✓
go ✓ ✓ ✓ ✓ ✓
haskell ✓ ✓ ✓ . ✓
lua ✓ ✓ ✓ ✓ ✓
markdown ✓ . ✓ ✓ ✓
markdown_inline ✓ . . . ✓
python ✓ ✓ ✓ ✓ ✓
query ✓ ✓ ✓ ✓ ✓
vim ✓ ✓ ✓ . ✓
vimdoc ✓ . . . ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang} ~
Output of nvim --version
% nvim -version
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1724512491
Run "nvim -V1 -v" for more info
Additional context
I'm using this init.lua file with -u to isolate the problem, but I get the same problem with my full .lua file:
-- Packer setup to manage pluginsrequire('packer').startup({
function(use)
-- Packer manages itselfuse'wbthomason/packer.nvim'-- Treesitter for syntax highlighting and textobjectsuse {
'nvim-treesitter/nvim-treesitter',
run=':TSUpdate',
config=function()
require('nvim-treesitter.configs').setup {
ensure_installed= { "lua" }, -- Install Lua parserhighlight= { enable=true }, -- Enable syntax highlightingtextobjects= { enable=true } -- Enable textobjects
}
end
}
-- Treesitter Textobjects supportuse'nvim-treesitter/nvim-treesitter-textobjects'end,
config= {
auto_clean=false, -- Disable automatic cleanup of unused plugins
}
})
-- Basic Neovim settingsvim.opt.number=true-- Show line numbersvim.opt.relativenumber=true-- Show relative line numbersvim.opt.expandtab=true-- Use spaces instead of tabsvim.opt.shiftwidth=2-- Number of spaces for each indentationvim.opt.tabstop=2-- Number of spaces per tab
The text was updated successfully, but these errors were encountered:
Describe the bug
vaf/vif not working in Lua code
To Reproduce
Expected behavior
I expect the lines comprising the function to be selected. Instead, it just changes into visual mode
The following work, however:
Output of
:checkhealth nvim-treesitter
==============================================================================
nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
tree-sitter
found 0.23.0 (parser generator, only needed for :TSInstallFromGrammar)node
found v18.20.4 (only needed for :TSInstallFromGrammar)git
executable found.cc
executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }Version: Apple clang version 15.0.0 (clang-1500.3.9.4)
OS Info:
{
machine = "arm64",
release = "23.5.0",
sysname = "Darwin",
version = "Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000"
} ~
Parser/Features H L F I J
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang} ~
Output of
nvim --version
Additional context
I'm using this init.lua file with -u to isolate the problem, but I get the same problem with my full .lua file:
The text was updated successfully, but these errors were encountered: