iamcco / iamcco/vim-language-server

Feature: goto definition for values defined in another script

Open
#39 6 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
546
Forks
19
PR merge metrics
No merged PRs in 30d

Description

First, thanks for this language server! It does its job well.

I have lots of plugins and it would be nice if I could jump to the definition of a function, a variable, or a command that is defined in another function. For example:

```vim
:verbose command FiletypeFormat
Name Args Address Complete Definition
FiletypeFormat 0 % silent! let b:filetype_formatter_winview = winsaveview() | ,call filetype_formatter#format_filetype() | silent call winrestview(b:filetype_formatter_win
view)
Last set from ~/.config/nvim/pack/packager/start/vim-filetype-formatter/plugin/filetype_formatter.vim line 113
```

The result gives me the file and line where the command (or function if using `function`) was last defined. Maybe we can use this, or something like it, to locate definitions in other VimScripts?

The above assumes that the user is using Vim to edit their Vimscript.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.