Comments (6)
Hi, QiBaobin
I am not sure I understand your suggestion/concern.
This plugin does not depend on treesitter install and does not have treesitter setup file. For example, here is my treesitter setup:
https://github.com/ray-x/nvim/blob/master/lua/modules/lang/treesitter.lua
If you do not need treesitter for the plugin,
set treesitter_analysis = false
The plugin will not use treesitter and fallback.
I also install nvim-treesitter-textobjects and nvim-treesitter-refactor, both works fine with navigator.
from navigator.lua.
@ray-x , Sorry, I didn't get it clear. I think the plugin only add those key mappings when there is a language sever exists, but there are cases that treesitter mappings also help a lot while there is no language server for that file type, for example I have installed c, lua python etc treesitter but there is none of language server for them on my system.
from navigator.lua.
If the problem related to key mapping.
Even if you do not have LSP enable, plugin will have mapping setup for you. Reson is some of the LSP is slow and takes a few seconds to startup, the plugin will not wait until LSP is ready.
you can set default_mapping=false
so NO default key mapping will be mapped when plugin startup.
Also you can use keymaps = {{key = "gK", func = "declaration()"}},
to override specific function keymapping.
Do you want to add an option so even you only have treesitter, you still want the functions treesitter symbol been mapped and the plugin works as if LSP been enable (e.g. gT to show treesitter document symbol)?
I can check if is possible..... I had never think of that user case before.
from navigator.lua.
Do you want to add an option so even you only have treesitter, you still want the functions treesitter symbol been mapped and the plugin works as if LSP been enable (e.g. gT to show treesitter document symbol)?
I can check if is possible..... I had never think of that user case before.
Yes, that is! Please implement it if that's not a big change, that helps a lot!
from navigator.lua.
Add codes and allow treesitter part work in a minimum vimrc (without LSP)
from navigator.lua.
Confirmed, thanks!
from navigator.lua.
Related Issues (20)
- Change the selected entry background HOT 1
- When opening files with line number, language lookup fails and shows an error
- PHP Syntax highlighting in preview window doesn't work when using Treesitter
- Autocompletion not properly working when navigator is enabled HOT 16
- Focusable diagnostics HOT 2
- Question: What are the value_changed and value_definition icons? HOT 3
- [Question] Is there a way to scroll the preview window? HOT 1
- [Feature] Prevent fzy search HOT 7
- Is an option to make disable default keymaps planned? HOT 4
- Doesn't load HOT 1
- [Question] Navigator is not kicking in on my machine HOT 2
- Finding references not working possibly due to recent changes in nvim-treesitter HOT 4
- Feature Request: type hierarchy
- [bug] Renaming rhs: expected string|function HOT 3
- Error calling `.setup({...})` HOT 1
- Unable to use with Lazy.nvim starter HOT 6
- Unable to override default configs HOT 2
- Q. What happened to diagnositc_config_sign [sic] HOT 1
- gp require('navigator.definition').definition_preview() doesn't work HOT 4
- bug: range formatting broken 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 navigator.lua.