GithubHelp home page GithubHelp logo

Comments (10)

blueyed avatar blueyed commented on July 4, 2024 1

I have created vim/vim#4700 to ask about support in Vim for this.

from vim-vimlparser.

tyru avatar tyru commented on July 4, 2024

s:VimLParser.builtin_functions

Yes, currently vimlparser doesn't have such thing.
I want to implement it for #105.

Currently scripts/update_builtin_commands.sh checks vim source (src/ex_cmds.h).
I want to provide similar script for vim functions (parse src/evalfunc.c).

from vim-vimlparser.

blueyed avatar blueyed commented on July 4, 2024

Ok. As per vim/vim#4700 Vim is unlikely to provide this information itself.

However, nvim_get_commands exists already (although only for non-builtin). Might be useful in general, but only for "dynamic" linting/parsing (i.e. not for vint, vimlparser.py etc, which need the list already).

from vim-vimlparser.

tyru avatar tyru commented on July 4, 2024

Thanks for asking to vim/vim.
I didn't know nvim_get_commands() (because I'm not neovim user).
currently neovim ex commands is updated manually. it should help auto-update 👍

Does neovim provide function list version of nvim_get_commands() ?

from vim-vimlparser.

tyru avatar tyru commented on July 4, 2024

Created #123

from vim-vimlparser.

tyru avatar tyru commented on July 4, 2024

I don't read nvim source code, because it MAY results in license violation when I write vim patch.
(@mattn has the same policy)

from vim-vimlparser.

blueyed avatar blueyed commented on July 4, 2024

I don't read nvim source code, because it MAY results in license violation when I write vim patch.
(@mattn has the same policy)

Interesting - can you elaborate?

from vim-vimlparser.

blueyed avatar blueyed commented on July 4, 2024

nvim_get_commands seems to just provide the internal information: https://github.com/neovim/neovim/blob/a46fe2e615bc5f4431cad04b67ac5ba0b67ed86c/src/nvim/api/buffer.c#L653-L684

from vim-vimlparser.

tyru avatar tyru commented on July 4, 2024

Interesting - can you elaborate?

Neovim's license is Apache license.
But Vim's license is Vim license.
I don't clearly say they are compatible.

from vim-vimlparser.

tyru avatar tyru commented on July 4, 2024

nvim_get_commands seems to just provide the internal information: https://github.com/neovim/neovim/blob/a46fe2e615bc5f4431cad04b67ac5ba0b67ed86c/src/nvim/api/buffer.c#L653-L684

sorry, I can't read it because of above reason 😓
I'm just afraid of that.

from vim-vimlparser.

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.