Comments (10)
@idanarye believe I have made some progress on this issue, at least for Python. It would be appreciated to test #58 if you have some time.
My approach is different to the one tagbar used, and I don't know whether it applies everywhere, since the semantics of hierarchy structures is not well defined actually, I can only implement this feature in a heuristic method.
let g:vista_ctags_renderer = 'default' | Vista ctags
:
from vista.vim.
This feature is blocked by #4 and will be resolved when it is fixed.
from vista.vim.
@idanarye You can the branch https://github.com/liuchengxu/vista.vim/tree/provide-default-renderer for now. I provide an option to render by the line number of tags, but the indentation feature is still missing and will be sorted out later.
let g:vista_ctags_renderer = 'default' | Vista
:
from vista.vim.
Still can't handle nested code that well:
The code, if you want to test it, is:
class Foo:
class Bar:
BAR = 12
class Baz:
pass
class Qux:
pass
def qux(self):
def thing1():
pass
if True:
def thing2():
pass
else:
def thing3():
pass
def thing4():
pass
from vista.vim.
Thanks for the test code, will look into it.
from vista.vim.
@idanarye I have improved the algorithm, please try again, the overall nested structure looks right now. There are still some other glitches, e.g, the highlight of current tag, but just ignore them for now, I will fix that when the nested display is usable.
from vista.vim.
Looks good now!
from vista.vim.
@idanarye I have fixed the problem of highlighting the nearby tag. I think it's nearly usable now!
from vista.vim.
Looking good!
With this, I'm going to start using Vista to replace not only tagbar but TToC as well.
from vista.vim.
I have finished all the features I wanted in #58. The nested display will be the default behavior. I'm planning to merge #58 soon, for the problems won't be found until you really use it.
from vista.vim.
Related Issues (20)
- Could the sidebar rendering being improved when using ALE?
- Support for YouCompleteMe? HOT 2
- let g:vista_default_executive = 'nvim_lsp' can not save file
- BUG: ruby nest module not show in ctags viewer
- Auto-open Vista window when starting with vim_lsp HOT 1
- A different layout for the Vista window HOT 1
- Statusline gets cleared when changing buffers even when `let g:vista_disable_statusline = 1` is set
- Add additional info like signatures to functions like in tagbar HOT 1
- Does not support Nerd Font v3+
- Automatic folding (zMzv like) when not in focus
- Unsupported kind: 'w' for --go-kinds option HOT 4
- Tree view for ctags HOT 1
- lsp+fzf preview show incorrect line. HOT 1
- I can't use it after installing
- Tex: [vista.vim] ctags: Warning: Unsupported kind: 'f' for --tex-kinds option HOT 1
- Plug-in doesn't get the job done because: "ctags: Warning: Cannot disable fixed field 'xxx' {pattern}" HOT 16
- Any plan for https://github.com/yegappan/lsp HOT 1
- Share same statusline of sidebar and other buffer HOT 7
- Feature Request: Mouse Support for Selecting and Double-Clicking to Jump to Items
- Add for systemverilog support?
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 vista.vim.