Closed PowerzinBR closed 9 months ago
Please execute :UpdateRemotePlugins
command.
Hello, i did that and the result was:
remote/host: python3 host registered plugins [] remote/host: generated rplugin manifest: C:\Users\Power\AppData\Local\nvim-data/rplugin.vim
I think defx.nvim
is lazy loaded. :UpdateRemotePlugins
must be executed after load.
Note: Why don't you upload the minimal vimrc?
Hey, Shougo.
I'm so sorry for that delay, i didn't have seen this message.
Here's the minimal vimrc that you asked, i used :UpdateRemotePlugins
.
Note: I use Windows, is that related to the error? I have seen a lot of people use defx.nvim without errors, didn't understand this one.
" Fundamentals "{{{
" ---------------------------------------------------------------------
autocmd!
if !1 | finish | endif
set nocompatible
set number
syntax enable
set fileencodings=utf-8,sjis,euc-jp,latin
set encoding=utf-8
set title
set autoindent
set background=dark
set nobackup
set hlsearch
set showcmd
set cmdheight=1
set laststatus=2
set scrolloff=10
set expandtab
set shell=pwsh
set backupskip=/tmp/*,/private/tmp/*
if has('nvim')
set inccommand=split
endif
set t_BE=
set nosc noru nosm
set lazyredraw
set path+=**
set wildignore+=*/node_modules/*
autocmd InsertLeave * set nopaste
set formatoptions+=r
"}}}
" Highlights "{{{
" ---------------------------------------------------------------------
set cursorline
highlight Visual cterm=NONE ctermbg=236 ctermfg=NONE guibg=Grey40
highlight LineNr cterm=none ctermfg=240 guifg=#2b506e guibg=#000000
augroup BgHighlight
autocmd!
autocmd WinEnter * set cul
autocmd WinLeave * set nocul
augroup END
if &term =~ "screen"
autocmd BufEnter * if bufname("") !~ "^?[A-Za-z0-9?]*://" | silent! exe '!echo -n "\ek[`hostname`:`basename $PWD`/`basename %`]\e\\"' | endif
autocmd VimLeave * silent! exe '!echo -n "\ek[`hostname`:`basename $PWD`]\e\\"'
endif
"}}}
" File types "{{{
" ---------------------------------------------------------------------
au BufNewFile,BufRead *.es6 setf javascript
au BufNewFile,BufRead *.tsx setf typescriptreact
au BufNewFile,BufRead *.md set filetype=markdown
au BufNewFile,BufRead *.mdx set filetype=markdown
au BufNewFile,BufRead *.flow set filetype=javascript
au BufNewFile,BufRead *.fish set filetype=fish
set suffixesadd=.js,.es,.jsx,.json,.css,.less,.sass,.styl,.php,.py,.md
autocmd FileType coffee setlocal shiftwidth=2 tabstop=2
autocmd FileType ruby setlocal shiftwidth=2 tabstop=2
autocmd FileType yaml setlocal shiftwidth=2 tabstop=2
"}}}
" Imports "{{{
" ---------------------------------------------------------------------
runtime ./plug.vim
runtime ./maps.vim
"}}}
" Syntax theme "{{{
" ---------------------------------------------------------------------
if exists("&termguicolors") && exists("&winblend")
syntax enable
set termguicolors
set winblend=0
set wildoptions=pum
set pumblend=5
set background=dark
let g:neosolarized_termtrans=1
runtime ./colors/NeoSolarized.vim
colorscheme NeoSolarized
endif
"}}}
" Extras "{{{
" ---------------------------------------------------------------------
set exrc
"}}}
[...]
runtime ./plug.vim
is important. Why you don't upload the file?
nvim.zip Well, here's my Neovim setup, since you asked. (I tryed to send the plug.vim but is not supported)
Hm... It seems not lazy loaded. So you don't execute :UpdateRemotePlugins
command.
Please check defx.nvim path is added in your runtimepath
.
If you use in Windows, you can test defx.nvim on WSL environment.
Hello @Shougo. Thank you for your responses, i will later give a look on all this and see it, thanks for the support along these two months.
Cheers 😄
Update on this: I tested it on Arch Linux, Pynvim installed, etc, and it still gave me the same error So i don't really know whats happening anymore :/
Really??
Please execute :UpdateRemotePlugins
and check the messages.
And rplugin.vim
file is created under stdpath('data')
.
I think it is empty.
What is :checkhelth
result?
Please see this.
Okay, i will check it
I was on a trip without my computer and i wasn't able to answer you later, sorry.
I had this problem. @Shougo is correct about the source of issue being the above linked pynvim issue.
As of right now, pynvim doesn't have a new release with this fix, so my workaround was:
pip install git+https://github.com/neovim/pynvim.git@d6dc8cfe71c6f05382ef50fb8bb0ce7e750ab0da
Since this is the commit for the MR with the fix
Problems summary
Cannot open Defx due to unknow function (_defx_init)
Expected
Open defx
Environment Information
plugin version(SHA1):
OS: Windows 11 Home
neovim/Vim version:
:checkhealth
result(neovim only):Provide a minimal init.vim/vimrc with less than 50 lines (Required!)
The reproduce ways from neovim/Vim starting (Required!)
Generate a logfile if appropriate
Screen shot (if possible)
Upload the log file
?