Git Product home page Git Product logo

Comments (7)

vpshastry avatar vpshastry commented on July 19, 2024 1

making it --language-force=auto solved it for me.

ctags -f - --sort=no --excmd=number --language-force=auto %s', expand('%:S')

from fzf.vim.

walkingsparrow avatar walkingsparrow commented on July 19, 2024

Not sure why you want me to check Python. Python works. But C++ does not
work.

2015年9月28日星期一,Junegunn Choi [email protected] 写道:

  • See the output of :echo &filetype from vim, it should be python
  • Check if ctags -f - --sort=no --excmd=number --language-force=python
    FILENAME works


Reply to this email directly or view it on GitHub
#17 (comment).

from fzf.vim.

junegunn avatar junegunn commented on July 19, 2024

Yeah, I misread the comment. Looks like cpp is not a valid type for ctags command.

ctags -f - --sort=no --excmd=number --language-force=cpp FILENAME
ctags: Unknown language "cpp" in "language-force" option

from fzf.vim.

walkingsparrow avatar walkingsparrow commented on July 19, 2024

I see. It seems one possible solution would be to force ctags to use c
tags for c++.

2015年9月28日星期一,Junegunn Choi [email protected] 写道:

Yeah, I misread the comment. Looks like cpp is not a valid type for ctags
command.

ctags -f - --sort=no --excmd=number --language-force=cpp FILENAME
ctags: Unknown language "cpp" in "language-force" option


Reply to this email directly or view it on GitHub
#17 (comment).

from fzf.vim.

junegunn avatar junegunn commented on July 19, 2024

Hmm, I just decided not to use the option, ctags seems to do good enough job inferring the right type for the file, even checking the she-bang line.

http://ctags.sourceforge.net/ctags.html

Unless the −−language−force option is specified, the language of each source file is automatically selected based upon a mapping of file names to languages. The mappings in effect for each language may be display using the −−list−maps option and may be changed using the −−langmap option. On platforms which support it, if the name of a file is not mapped to a language and the file is executable, the first line of the file is checked to see if the file is a "#!" script for a recognized language.

from fzf.vim.

vpshastry avatar vpshastry commented on July 19, 2024

Instead of providing cpp provide c++ in generating ctags.
--language-force=c++ that should work.

from fzf.vim.

JohanChane avatar JohanChane commented on July 19, 2024

Work for me.

printf('ctags -f - --sort=yes --excmd=number --language-force=%s %s 2> %s %s', &filetype == 'cpp' ? 'c++' : &filetype, escaped, null, sort)

from fzf.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.