Comments (7)
making it --language-force=auto solved it for me.
ctags -f - --sort=no --excmd=number --language-force=auto %s', expand('%:S')
from fzf.vim.
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.
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.
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.
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.
Instead of providing cpp provide c++ in generating ctags.
--language-force=c++ that should work.
from fzf.vim.
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)
- Question: can I change my fzf query with a shortcut
- Feature Request: let preview command highlight line HOT 3
- Getting `;5u` when pressing C-/ to toggle preview
- FZF Popup breaks when you scroll on windows
- How to use Rg to search recent file contents HOT 5
- Feature Request: add a fzf#vim#buffer_grep
- Unable to use commands like :Files and :Buffers HOT 3
- Splits with WinBar change size when opening and closing FZF
- [Feature Request] functional, blocking version of `fzf#run` for neovim HOT 4
- custom fzf_action behaviour have been broken by recent commit HOT 2
- :Helptags perl command failing HOT 11
- "Tab drop" no longer works as fzf action for jumping to existing tab HOT 2
- FZF Preview and Light themes colors not looking ok HOT 7
- Errors when running 'History:' and 'History/' commands HOT 1
- preview.sh not previewing files with nested path on Windows HOT 5
- Ctrl+T/Ctrl+X/Ctrl+V actions don't work correctly in some cases when a swap file exists HOT 4
- How to get fzf.vim to index files at startup? HOT 1
- cursor shape changed from underscore to block in iTerm2 HOT 4
- how to grep through a passed filelist
- Regression/error when running :Tags HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fzf.vim.