Comments (6)
Is this ctags assisted auto-completion or are you using nimrod.vim's integration with neocomplcache (or just using vim's omni-completion)?
I'm afraid that in both cases the problem is outside nimrod.vim. Ctags doesn't have a mechanism to figure out what is the current "context" for completion (what tags would be appropriate). Nimrod.vim just calls into the idetools features of the compiler, which are ultimately responsible for providing the list of completions.
nimrod idetools
is not quite polished at the moment, you can try to contribute tests that demonstrate the problematic behaviour and hopefully I'll be able to work on them at some point. See my comments about contributing tests here:
nim-lang/Nim#469
... and the more extensive docs by gradha:
https://github.com/Araq/Nimrod/blob/master/doc/idetools.txt#L508
from nim.vim.
btw, I'm very interested in your work with libuv. Is this an open-source project or are you developing something private?
from nim.vim.
Is this ctags assisted auto-completion or are you using nimrod.vim's integration with neocomplcache (or just using vim's omni-completion)?
I'm using neocomplcache with this config:
" Neocomplcache
let g:neocomplcache_enable_at_startup = 1
" Use smartcase.
let g:neocomplcache_enable_smart_case = 1
" Use camel case completion.
let g:neocomplcache_enable_camel_case_completion = 1
" Use underbar completion.
let g:neocomplcache_enable_underbar_completion = 1
" Disable autocompletion
let g:neocomplcache_disable_auto_complete = 1
" <TAB>: completion, like super-tab
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : <SID>check_back_space() ? "\<TAB>" : "\<C-x>\<C-u>\<C-p>\<Down>"
function! s:check_back_space()"{{{
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction"}}}
" Plugin key-mappings.
inoremap <expr><C-g> neocomplcache#undo_completion()
inoremap <expr><C-s> neocomplcache#complete_common_string()
For the libuv you can watch my repo here: https://github.com/daddye/node.nim
I worked a lot on it this weekend so tonight PST I'll finish my latest 1% to get working an http web server written with ryan/http_parser and libuv. I'm "abusing" of the generous help of @Araq to design some internal things but yep consider that I'm new in nimrod world so your help will be super appreciated!
from nim.vim.
EDIT:
I worked a lot on it this weekend so tonight PST I'll finish my latest 1% to get working an http web server written with ryan/http_parser and libuv
I worked a lot on it this weekend so tonight PST I'll finish my latest 1% to get working an http web server written with ryan/http_parser and libuv before pushing the new code
from nim.vim.
@Araq do you have any clue about this?
from nim.vim.
What needs to be fixed is the SymToStr
function in suggest.nim. It must be made aware of dirty buffers, which means taking into account the following values from options.nim:
gDirtyBufferIdx* = 0'i32 # indicates the fileIdx of the dirty version of
# the tracked source X, saved by the CAAS client.
gDirtyOriginalIdx* = 0'i32 # the original source file of the dirtified buffer.
There is no need to involve Araq into this. I'm away from home at the moment (and away from my nimrod development environment), but I'll be able to fix the bug roughly a week from now.
from nim.vim.
Related Issues (20)
- New Release?
- Configuring tab width
- json_decode related error (VIM 7.4)
- pathogen installation example is broken HOT 1
- syntax highlighting doesn't detect int literals
- Folding for `proc` and friends...
- Does this plugin require vim compiled with the python flag? HOT 3
- Improve documentation
- Vim error when opening a .nim file on Windows HOT 2
- not working with n/vim spf13 HOT 1
- Python 3 support HOT 1
- `nim idetools` no longer works for GotoDefinition_nim HOT 1
- Quickfix Formatting for Jumping to Errors HOT 5
- Colon symbol interpreted as part of a keyword HOT 2
- there is an error about 'nimTerminateAll' HOT 5
- nim#init executes nimscript on load HOT 3
- Syntastic: No Checkers? HOT 2
- tagbar integration
- Could you please explain the installation process a little bit more clear. HOT 1
- Error when run from the latest version of macOS
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 nim.vim.