Giter Club home page Giter Club logo

Comments (6)

zah avatar zah commented on August 15, 2024

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.

zah avatar zah commented on August 15, 2024

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.

DAddYE avatar DAddYE commented on August 15, 2024

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.

DAddYE avatar DAddYE commented on August 15, 2024

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.

DAddYE avatar DAddYE commented on August 15, 2024

@Araq do you have any clue about this?

from nim.vim.

zah avatar zah commented on August 15, 2024

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)

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.