Git Product home page Git Product logo

cmp-nvim-tags's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cmp-nvim-tags's Issues

Stuck on completion

Hi, it is stuck/draggy when using tags as cmp source. Is it possible to async or optimize the performance?

Typescript slow

I'm using cmp-nvim-tags with vim-gutentags and in typescript files(tsx) I have cursor freeze when I'm typing more then 4 symbols.
Source config:

  sources = cmp.config.sources({
    { name = 'tags', max_item_count = max_item_count  },
  }),
Screen.Recording.2022-08-25.at.21.09.28.mov

configuration to make `C-n`, `C-p` not overlap with in-build open buffer search or provide minimal vim-gutentags setup

The setup assumes that all info is 1. given by vim-gutentags or 2. self-contained in the file.

If one needs to work with incomplete tags info, the typical workaround is to open a buffer (of any size) to make the default vim inbuld C-n/C-p search through those.
However, nvim-cmp with default autocompletion overlaps those keymaps.

The alternative is to use vim-gutentags to enforce by path settings that everything relevant is contained in the tags files.

Error on jumping into ctag item in cmp-vim popup in latest Nightly Build of Neovim

Hi
there seems to be an issue with cmp-nvim-tags and the latest Neovim Nightly build (NVIM v0.8.0-dev-nightly-8-g001f19de2):

When selecting / jumping into a ctag item the following error is prompted:

img

    ...neovim/HEAD-001f19d_1/share/nvim/runtime/lua/vim/lsp.lua:1726: in function 'buf_request'
        ...neovim/HEAD-001f19d_1/share/nvim/runtime/lua/vim/lsp.lua:1786: in function 'buf_request_all'
        ...neovim/HEAD-001f19d_1/share/nvim/runtime/lua/vim/lsp.lua:1809: in function 'buf_request_sync'
        ...EAD-001f19d_1/share/nvim/runtime/lua/vim/lsp/tagfunc.lua:48: in function 'query_workspace_symbols'
        ...EAD-001f19d_1/share/nvim/runtime/lua/vim/lsp/tagfunc.lua:71: in function <...EAD-001f19d_1/share/nvim/runtime/lua/vim/lsp/tagfunc.lua:66>
        [C]: in function 'taglist'
        ...ig/nvim/plugged/cmp-nvim-tags/lua/cmp_nvim_tags/init.lua:9: in function 'buildDocumentation'
        ...ig/nvim/plugged/cmp-nvim-tags/lua/cmp_nvim_tags/init.lua:95: in function 'resolve'
        ...Feek/.config/nvim/plugged/nvim-cmp/lua/cmp/source.lua:348: in function 'resolve'
        .../Feek/.config/nvim/plugged/nvim-cmp/lua/cmp/entry.lua:459: in function 'resolve'
        ...s/Feek/.config/nvim/plugged/nvim-cmp/lua/cmp/view.lua:234: in function 'fn'
        ...pe/.config/nvim/plugged/nvim-cmp/lua/cmp/utils/async.lua:41: in function <...pe/.config/nvim/plugged/nvim-cmp/lua/cmp/utils/async.lua:39>

question/idea: feasibility of scope-aware completions

In theory one should be able to use treesitter to get the current scope attached to the cursor and filter search results based on that.

Do there exist any experiments with performance numbers based on that approach?
It is very frustrating to get completion results for things, which are never in scope (although only a lsp can rule this out in all cases for macro resolution).

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.