Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it work with nvim? #163

Open
stepancheg opened this issue Jan 21, 2021 · 7 comments
Open

Does it work with nvim? #163

stepancheg opened this issue Jan 21, 2021 · 7 comments
Labels
neovim support Request for direct support

Comments

@stepancheg
Copy link

I see from issues, it is supposed to work with NeoVim. Can you clarify it in readme?

@GiancarloAparicio
Copy link

It works normally in neovim, even in android with termux it also works fine :), although I have only used the supported properties that are in the README

@cxw42
Copy link
Member

cxw42 commented Feb 25, 2021

@stepancheg I would welcome a PR to update the README :)

@desdic
Copy link

desdic commented Dec 3, 2021

Well using neovim 0.6.0 it seems to load and set the autocmd but it dosn't seem to work .. like the load is done before the default of nvim. I haven't figured it out yet but it seems that it broke when 0.6.0 was released.

Anyhow once reloaded it works fine so

augroup _editorconfig
autocmd BufEnter * :EditorConfigReload
augroup END

does the trick for me

@twnaing
Copy link

twnaing commented Dec 6, 2021

I have the same problem here. I am not very proficient at vimscript, but the plugin tries to do it here.

# https://github.com/editorconfig/editorconfig-vim/blob/master/plugin/editorconfig.vim#L259
function! s:EditorConfigEnable(should_enable)
    augroup editorconfig
        autocmd!
        if a:should_enable
            autocmd BufNewFile,BufReadPost,BufFilePost * call s:UseConfigFiles()
        endif
    augroup END
endfunction

@desdic's trick works for me.

@duck-rh
Copy link

duck-rh commented Dec 24, 2021

Quack,

I just installed the plugin on neovim 0.6.0-1 (on Debian unstable) and tested with a project with different settings for different extensions (especially different indent_style/indent_size) and it is working fine without any trick. I use vim-plug and the plugin iis loaded quite early after theming plugins and before anything else. I only set g:EditorConfig_exclude_patterns for fugitive/scp as recommended.

\_o<

@herrbischoff
Copy link

For me, it used to work. Using Neovim 0.7.2 it does not any more. Switched over to https://github.com/gpanders/editorconfig.nvim, works out of the box, no config. It has less configurability but I just need a simple plugin that works. Maybe interesting to someone else as well.

@cxw42 cxw42 added support Request for direct support neovim labels Aug 2, 2022
@nyngwang
Copy link

FYI: gpanders/editorconfig.nvim has been merged into NeoVim 0.9. See: neovim/neovim#21633

Rafflesiaceae added a commit to Rafflesiaceae/dotfiles that referenced this issue Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
neovim support Request for direct support
Projects
None yet
Development

No branches or pull requests

8 participants