Strahinja Val Markovic
4978546e62
Refactoring out some pointless sys.path changes
2013-05-19 10:35:42 -07:00
Strahinja Val Markovic
4b039e2102
Using BufUnload instead of BufDelete
...
Seems to be more robust. This should help with memory consumption when using the
clang_completer. See issue #184 .
2013-05-11 13:49:48 -07:00
Strahinja Val Markovic
2b23245422
Minor refactoring & style cleanup
2013-05-09 20:28:04 -07:00
Stanislav Golovanov
0edec9c95a
Add subcommand completion for YcmCompleter command
2013-05-09 21:55:55 +04:00
Strahinja Val Markovic
df7026e9b6
Fix error on YcmDebugInfo in quickfix window
...
Fixes #283
2013-04-28 15:52:22 -07:00
Strahinja Val Markovic
209f2fd777
Minor refactoring for simplicity
2013-04-26 22:32:22 -07:00
Strahinja Val Markovic
663873255f
Filename completer now uses include paths
...
It's also smart enough to trigger filename completion right after '#include "'.
Fixes #261
2013-04-24 22:51:53 -07:00
Strahinja Val Markovic
3ae9764451
Force filename completer on #include
2013-04-24 19:59:14 -07:00
Strahinja Val Markovic
aea154e829
Refactoring ycm_extra_conf handling into module
2013-04-22 10:31:16 -07:00
Strahinja Val Markovic
93ed6f7db7
Fix bug with removing flag after "-c"
...
-c does not take an argument. Why did I think it did?
2013-04-19 10:31:55 -07:00
Strahinja Val Markovic
77fbd80c89
Refactoring out some vim.eval calls
...
s:completion_start_column should not be evaled in Python code. That was a
stopgap measure that ended up lasting far longer than intended.
2013-04-09 19:32:48 -07:00
Strahinja Val Markovic
085df7e8af
Fix traceback print on None for |location|
...
This happens when the user invokes a GoTo* command on a file with no compilation
flags.
2013-04-08 11:15:27 -07:00
Strahinja Val Markovic
1f094e50d0
GoToDefinition/Declaration commands for C-family
...
These are accessible through the :YcmCompleter command. The docs have more
information.
2013-03-31 20:38:29 -07:00
Strahinja Val Markovic
d0a51fbf2c
More info for conf file load dialog message
...
The user is now informed of options that can turn off this dialog.
2013-03-19 12:59:17 -07:00
Strahinja Val Markovic
4cb9f17c5f
Cache deletion is now async
2013-03-16 12:10:24 -07:00
Strahinja Val Markovic
c391bdcc62
Reducing RAM consumption by deleting unused caches
...
When the user deletes a buffer, we can delete the clang caches for that file.
Fixes #184 .
2013-03-16 10:41:47 -07:00
Strahinja Val Markovic
ba6b40e485
Refactoring the ClangAvailableForBuffer method
2013-03-03 10:48:34 -08:00
Zeh Rizzatti
1acd3e84c7
Support for multile filetypes in clang_completer
...
clang_completer would check if the raw value of '&ft' was one of
supported filetypes for the completer.
Vim allows for multiple filetypes with a '.' separator. A file with
ft=qt.cpp, for example, would not be supported by clang_completer even
though it was a cpp file.
This patch changes that behaviour.
2013-03-02 22:02:29 -04:00
Strahinja Val Markovic
980a1c2ffc
Minor post-PR changes
2013-02-28 09:54:22 -08:00
Strahinja Val Markovic
aafcd4264d
Merge branch 'globlist' of github.com:kljohann/YouCompleteMe into kljohann-globlist
...
Conflicts:
python/completers/cpp/flags.py
2013-02-28 09:51:38 -08:00
Johann Klähn
1d566bad80
Implement white-/blacklisting
2013-02-28 18:15:09 +01:00
Strahinja Val Markovic
263b405ab4
Very minor post-pull style-related changes.
2013-02-26 18:28:58 -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
e60928d721
Updating error message on missing ycm_extra_conf
2013-02-20 13:16:18 -08:00
bear
66289d7522
let g:ycm_global_ycm_extra_conf can use "~"
2013-02-18 15:10:13 +08:00
Ola Jeppsson
3d1a86c382
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:06:48 +01:00
Strahinja Val Markovic
452f7d1fec
Better triggering of semantic completion
...
Now there's a nice user-configurable setting for when YCM should trigger
semantic completion. This is very useful for the new omni_completer that uses
data coming from Vim's omnicomplete system.
2013-02-11 21:46:06 -08:00
Strahinja Val Markovic
786e6182ff
Initial version of omnifunc-based omni_completer
...
Still a work in progress (needs better triggering and bug fixes)
2013-02-10 20:03:56 -08:00
Strahinja Val Markovic
6be3cd37ed
Making sure filename exists before using it
2013-02-06 18:46:57 -08:00
Strahinja Val Markovic
6f10d7aad7
YcmDiags now doesn't hang when no flags available
...
Fixes #46
2013-02-05 21:22:50 -08:00
Strahinja Val Markovic
a1c89f5108
Fix rare traceback on <leader>d. Fixes #43
2013-02-05 20:12:43 -08:00
Strahinja Val Markovic
ace95db4f0
Emit warning about missing extra_conf file once
...
Otherwise we spam the user, which is annoying. Fixes #41 .
2013-02-05 19:03:38 -08:00
Strahinja Val Markovic
f671fe72b2
Adding our paths to sys.path start, not end
...
Otherwise things can conflict and we could end up loading the wrong module.
2013-01-31 17:32:39 -08:00
Strahinja Val Markovic
8452914046
Adding a command to force recompilation and diags
2013-01-30 14:46:58 -08:00
Strahinja Val Markovic
79f834f97e
Now possible to specify a global ycm_extra_conf
2013-01-30 13:23:57 -08:00
Strahinja Val Markovic
424736e395
Making sure that 'flags' is a list
2013-01-28 12:56:45 -08:00
Strahinja Val Markovic
d3874ebb65
Code style fix
2013-01-28 10:05:13 -08:00
Strahinja Val Markovic
7e929b7831
clang_completer debug info now shows file flags
2013-01-28 10:00:15 -08:00
Strahinja Val Markovic
6579a1d05d
Trivial refactoring
2013-01-24 17:14:10 -08:00
Strahinja Val Markovic
19637cadda
Renaming ycm_clang_options to ycm_extra_conf
2013-01-24 09:59:21 -08:00
Strahinja Val Markovic
90fe31f98e
Async querying of CompilationDatabase supported
2013-01-23 17:23:51 -08:00
Strahinja Val Markovic
970b2fb56c
Kiling a memory leak... I hate C interfaces
2013-01-22 17:29:05 -08:00
Strahinja Val Markovic
6ba2dd8caa
Printing an error when no ycm_clang_options.py file
2013-01-22 17:13:14 -08:00
Strahinja Val Markovic
482de517ba
Better support for CompilationDatabase
...
We now use the compilation working directory for a file that is specified in the
CompilationDatabase. We don't actually change the working directory of the
process, even temporarily (that would be annoying to users); we munge the flags
coming from the database so that all the relative paths in them are resolved to
absolute ones.
2013-01-22 16:30:49 -08:00
Strahinja Val Markovic
00db8fd8b1
compilation_database.json now fully supported
2013-01-19 18:53:30 -08:00
Strahinja Val Markovic
f9a516704b
Now explicitly adding the clang includes to flags
2013-01-17 17:08:28 -08:00
Strahinja Val Markovic
5ac3d40691
No error when no clang support and cpp file opened
...
Previously, when the user opened a cpp/c/objc/objcpp file and clang support was
not compiled in, there would be an error message printed in vim.
2013-01-13 20:56:10 -08:00
Strahinja Val Markovic
04991d874d
Moving a comment closer to the related code
2012-09-05 21:49:51 -07:00
Strahinja Val Markovic
dc2f52edbf
Adding a max_diagnostics_to_display user option
2012-08-15 20:58:21 -07:00
Strahinja Val Markovic
daef17feb4
Support for showing extra info for diagstics
...
This was intended to show the full clang output for a given diagnostic,
including notes. But it appears that libclang does not provide this
functionality...
2012-08-15 19:39:03 -07:00