Comments (11)
The plugin isn't touching any window except its own floating window. @liuchengxu, do you know if this is something that could be caused by vim-which-key?
from nvim-treesitter-context.
Have no idea. The strange thing is when g:which_key_use_floating_win
is 1, s:show_old_win
should not be called, https://github.com/liuchengxu/vim-which-key/blob/794e18deb5e58d261047a774b7d5c0c78d81e9ef/autoload/which_key/window.vim#L161-L164 . What is the value of g:which_key_use_floating_win
? @SandWoodJones
from nvim-treesitter-context.
I've tested with g:which_key_use_floating_win=0
and there is no problem since which-key uses its own popup window, but I currently use g:which_key_use_floating_win=1
.
from nvim-treesitter-context.
What I mean is s:show_old_win()
should not be invoked when g:which_key_use_floating_win
is 1, so the error message does not make sense to me. I can take a look if you provide a minimal vimrc, I don't use tree-sitter, so please make the minimal vimrc really simple to reproduce.
from nvim-treesitter-context.
minimal rc:
require('nvim-treesitter.configs').setup {
highlight = {
enable = true
}
}
vim.wo.number = true
vim.g.mapleader = ' ' -- Map leader to spacebar
vim.api.nvim_set_keymap('n', '<leader>', ':<c-u>WhichKey "<Space>"<CR>', {noremap = true, silent = true})
vim.g.which_key_use_floating_win = 0
steps to reproduce:
- Enter a treesitter context (A function for instance)
- Have
nvim-treesitter-context
display the current context - Invoke
which-key
- exit
which-key
from nvim-treesitter-context.
Don't know how to set this up as I don't use Lua config either :).
from nvim-treesitter-context.
Well in neovim it would be the same as loading any regular init.vim, but here is the vimscript version
lua << EOF
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true
}
}
EOF
set number
let g:mapleader=' '
nnoremap <silent> <Leader> :<c-u>WhichKey "<Space>"<CR>
let g:which_key_use_floating_win=0
from nvim-treesitter-context.
I'm using this minimal vimrc:
call plug#begin('~/.vim/plugged')
Plug 'romgrk/nvim-treesitter-context'
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'liuchengxu/vim-which-key'
call plug#end()
lua << EOF
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true
}
}
EOF
set number
let g:mapleader=' '
nnoremap <silent> <Leader> :<c-u>WhichKey "<Space>"<CR>
let g:which_key_use_floating_win=0
But runs into this error and I'm too lazy to resolve it.
Error detected while processing FileType Autocommands for "*":
E5108: Error executing lua ...496b9/share/nvim/runtime/lua/vim/treesitter/language.lua:33: ABI version mismatch for /Users/xuliucheng/.vim/plugged/nvim-
treesitter/parser/rust.so: supported between 9 and 12, found 13
Error detected while processing BufEnter Autocommands for "*":
E5108: Error executing lua ...496b9/share/nvim/runtime/lua/vim/treesitter/language.lua:33: ABI version mismatch for /Users/xuliucheng/.vim/plugged/nvim-
treesitter/parser/rust.so: supported between 9 and 12, found 13
from nvim-treesitter-context.
Did you install the rust parser with :TSInstall rust
? If so then maybe this solves it?
from nvim-treesitter-context.
Compiling the grammar from source can fix the tree-sitter ABI change problem: :TSInstallFromGrammar rust
.
from nvim-treesitter-context.
This issue is very stale and with little indication that this is an issue with this plugin. Closing.
from nvim-treesitter-context.
Related Issues (20)
- Add `'TreesitterContextBottomLineNr'` highlight group HOT 2
- Context not working for python HOT 2
- Context has no highlighting when first opening Neovim HOT 4
- Add `trim_scope = "center"` HOT 1
- The `stl` setting from `'fillchars'` is being displayed in ts-context when using `'statuscolumn'` HOT 3
- context.lua:17: attempt to index local 'tree' (a nil value) HOT 3
- Context header disappears with markdown_inline parser installed HOT 1
- Disbled languages config option HOT 1
- feat: Lua API to get the status of treesitter context
- Very poor performance after “do not use vim.treesitter.highlighter” HOT 2
- Use one floating window instead of two. HOT 10
- Multi-line function definition is not handled HOT 1
- Feature Request: Formalise require('treesitter-context.context').get() API HOT 2
- Feat: tag the ts-context windows so they can be identified programmatically HOT 2
- Can this plugin be configured such that scrolloff is respected between the context and the cursor? HOT 2
- Show ruby blocks in context HOT 3
- Julia context queries not updated HOT 10
- height key must be positive integer error while scrolling down in markdown file when the first line is empty HOT 6
- Q: is there a way to replicate GitHub's context? HOT 4
- Error message when opening the command line window with q: HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-treesitter-context.