Comments (3)
I have this same problem with my config (not using astrovim).
The other movement commands also do not work (reliably), especially using % does not work at all.
:echo JuliaGetMatchWords()
always returns \<\>:\<\>
which is not correct I assume.
from julia-vim.
Okay I did some more digging.
The issue stems from me (and AstroVim) using Treesitter for syntax highlighting.
The filetype plugin from julia-vim relies on synID()
in line 58:
let attr = synIDattr(synID(l, c, 1),"name")
.
However, when using treesitter for syntax highlighting, synID()
always returns 0
which breaks the rest of the JuliaGetMatchWords()
function.
In case you (@sash-a) haven't found some other solution, you can make the navigation commands work by disabling treesitter for julia files.
You can do that like this:
require"nvim-treesitter.configs".setup({ ignore_install = {"julia"} })
,
in your treesitter configuration and then uninstalling the TS parser for julia:
:TSUninstall julia
It would be nice if there was a way to use julia specific navigation while also using treesitter, but disabling it resolves the problem as a workaround.
from julia-vim.
i seem to run into this behaviour without Treesitter installed ,
i can confirm that my juliagetmatchwords returns
\%(\%(\%(@\%([#(]\@!\S\)\+\|\<\%(local\|global\)\)\s\+\)\@<!\%(\%(@\%([#(]\@!\S\)\+\|\<\%(local\|global\)\)\s\+\)\+\%(\.\s*\|@\)\@<!\<\%(function\|macro\|begin\|mutable\s\+struct\|\%(mutable\s\+\)\@<!struct\|\%(abstract\|primitive\)\s\+type\|let\|do\|\%(bare\)\?module\|quot
e\|if\|for\|while\|try\)\>\)\|\%(\%(\%(@\%([#(]\@!\S\)\+\|\<\%(local\|global\)\)\s\+\)\@<!\%(\.\s*\|@\)\@<!\<\%(function\|macro\|begin\|mutable\s\+struct\|\%(mutable\s\+\)\@<!struct\|\%(abstract\|primitive\)\s\+type\|let\|do\|\%(bare\)\?module\|quote\|if\|for\|while\|try\)\
>\):\<end\>
from julia-vim.
Related Issues (20)
- [Bug] Unexpected behaviour when editting file with julia-vim. HOT 5
- feature request: other block form toggles
- latex-to-unicode tab in command line breaks some plugins
- Highlight group for type definitions HOT 2
- Exclamation mark after identifier wrongly highlighted as operator HOT 1
- gifs made with @gif from Plots.jl do not automatically open HOT 1
- Include latest in Vim 9 release
- Comments for weave.jl script format
- missing dictionary key in call to `L2U_SetFallbackMapping` HOT 7
- Invalid cchar value while processing juliadoc.vim HOT 2
- Allow LaTeX to unicode completion to support consecutive sub/superscript characters
- `ftplugin` not loaded? HOT 1
- 700 ms delay on startup
- julia-vim syntax highlighting incompatible with rainbow parenthesis HOT 1
- why not use digraph to input unicode, especially the Greek alphabet, HOT 1
- LaTeXtoUnicode missing double guillemets ยซ and ยป HOT 4
- julia-vim-extra-colors doesn't work in begin ... end HOT 3
- EditorConfig conflict HOT 1
- `b:undo_ftplugin` should not reset indentation settings HOT 4
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 julia-vim.