Git Product home page Git Product logo

Comments (22)

liuchengxu avatar liuchengxu commented on August 31, 2024

See this section https://github.com/liuchengxu/vista.vim#show-the-nearest-methodfunction-in-the-statusline to run vista.vim on startup.

It should be easy to support vista.vim on vim-airline, but I recently don't use airline, so I may not add this support myself.

from vista.vim.

lanox avatar lanox commented on August 31, 2024

@liuchengxu not sure I see what I am looking there, but will take another look.

also quick question regarding floating_win it seems to blink when you move to function and its kind of annoying is it possible to make sure it doesn't blink

Thanks for you work

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

If you think there is a problem with the floating win, you should raise another issue and describe it carefully, otherwise I can't help about it.

from vista.vim.

lanox avatar lanox commented on August 31, 2024

No problems, I will open another issue, altho I am still not sure how to load this on startup.

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

Just add this line your vimrc, then vista.vim will run on startup:

autocmd VimEnter * call vista#RunForNearestMethodOrFunction()

from vista.vim.

lanox avatar lanox commented on August 31, 2024

That is what I tried but got this on error

Error detected while processing VimEnter Autocommands for "*":
E117: Unknown function: vista#RunForNearestMethodOrFunction

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

Have you updated to the latest version?

from vista.vim.

lanox avatar lanox commented on August 31, 2024

To be honest i just discovered this plugin, so yes i have latest, and I just tried updating it and it says I have latest.

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

This feature has been added since #39, so I can only suggest you make sure that you are really using the right version.

from vista.vim.

lanox avatar lanox commented on August 31, 2024

this the the git rev i am using 3c222b3
and NVIM v0.4.0-dev

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

Can you open the file autoload/vista.vim to see if the function is in there?

from vista.vim.

lanox avatar lanox commented on August 31, 2024

this is what I see in that file.

function! vista#RunForNearestMethodOrFunction() abort
  let [bufnr, winnr, fname, fpath] = [bufnr('%'), winnr(), expand('%'), expand('%:p')]
  call vista#source#Update(bufnr, winnr, fname, fpath)
  let executive = get(g:, 'vista_default_executive', 'ctags')
  call vista#executive#{executive}#Execute(v:false, v:false)

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

Then what does :call vista#RunForNearestMethodOrFunction say?

from vista.vim.

lanox avatar lanox commented on August 31, 2024

Missing parentheses: vista#RunForNearestMethodOrFunction

also tried :call vista#RunForNearestMethodOrFunction()
Unknown function: vista#RunForNearestMethodOrFunction

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

Oh, my bad, should be :call vista#RunForNearestMethodOrFunction().

from vista.vim.

lanox avatar lanox commented on August 31, 2024

I updated the comment before as I though you might of missed it.

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

No error with :call vista#RunForNearestMethodOrFunction()? Then it's probably that vista.vim has not been added to your runtimepath when calling the function. You should check your vimrc to ensure it's initialized before your call.

from vista.vim.

lanox avatar lanox commented on August 31, 2024

That is work considering all else work ..

running:call vista#RunForNearestMethodOrFunction()

I get
Unknown function: vista#RunForNearestMethodOrFunction

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

What is :scriptnames?

You should post your minimal vimrc to fix this quickly.

from vista.vim.

lanox avatar lanox commented on August 31, 2024

my vimrc is bit complicated as it's in seperate files etc. Look dont worry about I will continue to look in to it.

It's strange I am having issue only with this plugin, i have other functions/plugins that I use and they seem to be working fine.

from vista.vim.

liuchengxu avatar liuchengxu commented on August 31, 2024

This problem should be utterly easy to resolve, just ensure that it's initialized correctly and vim can find the right path. It's all on your own vimrc.

from vista.vim.

lanox avatar lanox commented on August 31, 2024

You can see my minimal config in there, however even with minimal it still doesn't work.
https://asciinema.org/a/K8we8huUfL9I5XAwvSW2xDIq1

from vista.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.