Johann Klähn
3d305f9c74
Implement completer-specific commands
...
This provides a framework for completer-writers to create
completer-specific commands. I have in mind to use this for the clang
completer to force reloading of a flags module via `:YcmCompleter reload`.
2013-02-28 11:32:07 +01:00
Strahinja Val Markovic
719b497daa
More reliable way of adding -fPIC.
...
Fixes #162
2013-02-27 19:43:41 -08:00
Strahinja Val Markovic
263b405ab4
Very minor post-pull style-related changes.
2013-02-26 18:28:58 -08:00
Strahinja Val Markovic
95b9eeee18
Merge branch 'master' of github.com:kljohann/YouCompleteMe into kljohann-master
2013-02-26 18:21:46 -08:00
Johann Klähn
e9cce29761
Ask before loading .ycm_extra_conf.py files
...
To prevent the execution of malicious code the new default is
to ask the user before a `.ycm_extra_conf.py` file is loaded.
This can be disabled using the option `g:ycm_confirm_extra_conf`.
This commit introduces a helper class `FlagsModules` that keeps track of
and caches the currently loaded modules. To introduce further criteria
for a module look at `FlagsModules.ShouldLoad`.
Also `:YcmDebugInfo` now lists the file that was used to determine
the current set of flags.
`Flags.ModuleForFile` could be used in a user-facing command that
opens the `.ycm_extra_conf.py` corresponding to the current file.
A second command could then force a reloding of this module via
`Flags.ReloadModule`.
2013-02-26 11:16:26 +01:00
Strahinja Val Markovic
bae3665602
Adding semantic triggers for Go
2013-02-25 19:09:58 -08:00
Strahinja Val Markovic
05f707344b
Updating docs with semantic trigger changes
2013-02-25 11:21:25 -08:00
Val Markovic
c6cf813b7a
Merge pull request #154 from blueyed/trigger_for_static_php
...
g:ycm_semantic_triggers: add '::' to triggers for PHP
2013-02-25 11:16:26 -08:00
Daniel Hahler
f78b9dc29c
g:ycm_semantic_triggers: add '::' to triggers for PHP
2013-02-25 11:09:51 +01:00
Johann Klähn
4b3e0a1895
Add code to ask user for confirmation in vimsupport
2013-02-25 10:50:44 +01:00
Johann Klähn
70a2a722fe
Add GetBoolValue helper in vimsupport
2013-02-25 10:50:39 +01:00
Strahinja Val Markovic
a6a238bcf6
Deleting outdated comment
2013-02-24 14:46:58 -08:00
Strahinja Val Markovic
eb7bec4fdd
Refactoring ClangCompleter to use ResultAnd<>
2013-02-23 17:54:04 -08:00
Strahinja Val Markovic
fb62030122
A few more clang cursorkinds supported
...
Now C-family completion will have fewer compeletion strings labeled as 'u' kind.
2013-02-23 17:34:10 -08:00
Strahinja Val Markovic
78dd01804d
Docs linking to Windows installation wiki page
...
That wiki page along with the last several commits that make YCM compiled
cleanly with MSVC should make it possible to use YCM on Windows. Fixes #62 .
2013-02-23 16:50:21 -08:00
Strahinja Val Markovic
f71b003e9b
Removing ycm_core.dll as allowed name
...
I'm pretty sure that allowing ycm_core.dll was wrong. Python docs state that the
extension for compiled Python modules on Widows is "pyd"; see this link for more
details: http://docs.python.org/2/faq/windows.html#is-a-pyd-file-the-same-as-a-dll
Key quote from the page:
"Of course, foo.pyd is required if you want to say import foo."
CMakeLists.txt has been previously updated to produce a ycm_core.pyd on Windows,
not a ycm_core.dll.
2013-02-23 16:11:15 -08:00
Strahinja Val Markovic
3e5ecd6015
ycm_core should be ycm_core.pyd on Windows
2013-02-23 16:10:36 -08:00
Strahinja Val Markovic
6786d4e71b
More style fixes
2013-02-23 15:57:55 -08:00
Val Markovic
ce58bc7d75
ycm_core now compiles cleanly with MSVC
2013-02-23 15:57:55 -08:00
Strahinja Val Markovic
e1584a33b0
Code style fixes
2013-02-23 15:54:44 -08:00
Strahinja Val Markovic
c819c9f31e
Typo fix
2013-02-23 13:08:56 -08:00
Strahinja Val Markovic
46297a1c30
Downloading x86 libclang for Ubuntu x86
2013-02-23 12:54:17 -08:00
Strahinja Val Markovic
78b5ef93cf
Ubuntu install docs now mention build-essential
2013-02-23 11:44:58 -08:00
Strahinja Val Markovic
2fdfa85a73
Parallel build support for install script
...
We now pass the number of CPUs as the make -j argument.
Fixes #139
2013-02-23 10:30:33 -08:00
Strahinja Val Markovic
98ff82ece5
Removing falsy items from omnifunc returned items
...
Depending on the omnifunc the user has set, it could return empty strings etc in
the list of items.
Fixes #146 , fixes #147
2013-02-23 09:55:13 -08:00
Strahinja Val Markovic
c1700c7d19
Handle omnifunc returning dict with 'words'
2013-02-23 09:35:07 -08:00
Val Markovic
c61c9f6051
Merge pull request #145 from jspricke/master
...
Clean up after build
2013-02-22 08:52:52 -08:00
Jochen Sprickerhof
a59750505b
Clean up build dir in install.sh
2013-02-22 13:17:09 +01:00
Strahinja Val Markovic
fd2fd60f7c
Identifier collection now smarter about strings
...
Previously, a string like 'foo\'bar\'zoo' would make the collection process
think that "bar" is not inside a string because it wouldn't recognize that the
quotes are escaped. Now it does.
Fixes #143 .
2013-02-21 22:14:31 -08:00
Strahinja Val Markovic
101d949a88
Splitting echo text on \n and echoing lines
2013-02-21 10:50:38 -08:00
Strahinja Val Markovic
e60928d721
Updating error message on missing ycm_extra_conf
2013-02-20 13:16:18 -08:00
Val Markovic
7d15912efa
Merge pull request #137 from benjie/patch-1
...
Fix README typo for g:ycm_semantic_triggers value
2013-02-20 10:32:00 -08:00
Strahinja Val Markovic
0abb3ca61c
Clarifying the "ycm_core too old" error message
2013-02-20 10:14:29 -08:00
Benjie Gillam
a4affacdd7
Fix README typo for g:ycm_semantic_triggers value
2013-02-20 14:06:03 +00:00
Val Markovic
3a285e8a31
Merge pull request #122 from cehoffman/cygwin_support
...
Get cygwin compilation working
2013-02-19 00:13:41 -08:00
Chris Hoffman
ee943d7173
Add missing option for ycm_core to be a dll
2013-02-18 23:56:23 -06:00
Chris Hoffman
e7774cf44b
Get cygwin compilation working
2013-02-18 23:55:54 -06:00
Val Markovic
3a7634c5be
Merge pull request #130 from beards/master
...
let g:ycm_global_ycm_extra_conf accept "~"
2013-02-18 11:10:54 -08:00
bear
66289d7522
let g:ycm_global_ycm_extra_conf can use "~"
2013-02-18 15:10:13 +08:00
Strahinja Val Markovic
3108fdcbd0
Merge branch 'xgalaxy-master'
2013-02-17 19:34:42 -08:00
Strahinja Val Markovic
7988f75afb
Typo fix in install script
2013-02-17 19:34:07 -08:00
Strahinja Val Markovic
69997ef20a
New FAQ entry; segfaults on some linux distros
2013-02-17 19:12:40 -08:00
Ola Jeppsson
97c7b5b082
Let local YCM config file override global config file
...
Currently, when VIM opens a source file, YCM always defaults to
'g:global_ycm_extra_conf_file' if it exists.
This commit changes YCM's behaviour so that it first tries to find the config
file in the source file's folder (or any of its parents folder), before
falling back to 'g:global_ycm_extra_conf_file'.
2013-02-17 19:12:39 -08:00
Strahinja Val Markovic
9a6a9f5dfe
Linking with librt only on Linux
2013-02-17 19:12:39 -08:00
Rafal Jeczalik
5175b88392
ycm_core needs to be linked with librt under Linux
2013-02-17 19:12:39 -08:00
Strahinja Val Markovic
9501c649aa
New FAQ entry; segfaults on some linux distros
2013-02-17 19:08:30 -08:00
Val Markovic
9e3aa21a77
Merge pull request #119 from olajep/let-local-conf-override-global
...
Let local YCM config file override global config file
2013-02-17 13:07:38 -08:00
Robert D. Blanchet Jr
018e670324
Need to pay closer attention ;(
2013-02-17 11:03:22 -08:00
Robert D. Blanchet Jr
8bc9073ef1
Only use python_finder on OSX.
2013-02-17 11:01:31 -08:00
Robert D. Blanchet Jr
e5b9ffb637
Fix non-framework python library path.
2013-02-17 10:47:14 -08:00