Giter Club home page Giter Club logo

vimmic's People

Contributors

charlesgueunet avatar funkysayu avatar guillaumefavelier avatar kerl13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vimmic's Issues

Illegal values in Ale.vim config file for neovim

I updated vimmic today since then neovim start with the following error message:

Error detected while processing VimEnter Autocommands for "*":
E418: Illegal value: red

Starting neovim in debug mode results in the following:

autocommand highlight ALEVirtualTextError cterm=red cterm=bold
Press ENTER or type command to continue
Error detected while processing VimEnter Autocommands for "":
E418: Illegal value: red
Press ENTER or type command to continue
autocommand highlight ALEVirtualTextWarning cterm=yellow cterm=bold
Press ENTER or type command to continue
Error detected while processing VimEnter Autocommands for "
":
E418: Illegal value: yellow
Press ENTER or type command to continue
autocommand highlight ALEVirtualTextIngo cterm=cyan cterm=bold
Press ENTER or type command to continue
Error detected while processing VimEnter Autocommands for "*":
E418: Illegal value: cyan

Searching in .vimmic it seems to be the lines 22 - 26 in the config file Ale.vim is the issue.

According to the Nvim documentation allowed values for cterm are "bold" and "underline". For colors ctermfg and/or ctermbg has to be used.

Potential conflict with popup navigation & auto open popen using J and K keys

Vimmic is configured to automatically open a popup window once he can (instead of using, for example, <C-P>)

" automatically open and close the popup menu / preview window
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif

However this configuration is mixed with the following one:

inoremap <expr> j ((pumvisible())?("\<C-n>"):("j"))
inoremap <expr> k ((pumvisible())?("\<C-p>"):("k")) 

Which allows the user to navigate with keys j and k in the popup window in insert mode.

This feature is interesting, but can be harmful in some cases. For example considere the following snippet:

const LOCK_SOMETHING = true

func MyFunc() {
    mystring := "I am using a loc|      <----- Vim cursor is here

A popen opens, which will suggest LOCK_SOMETHING while writing loc. By pressing k, I enter in the popup and choose the first occurence (i.e. LOCK_SOMETHING) which was not intended.

This behaviour might be harmful for vim begginers (like me!). My suggestion would be to put in the documentation the two inoremap lines and disable them by default.

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.