Coder Social home page Coder Social logo

Comments (6)

vhda avatar vhda commented on June 11, 2024

Hi @microway199x,
I'm pretty sure something is broken in how you are setting up plugins in your Neovim configuration.
I've just installed Neovim and setup its init.vim to load my .vimrc and did not find any issues.

from verilog_systemverilog.vim.

microway199x avatar microway199x commented on June 11, 2024

thanks vhda reply:
I think I know why fails now;

my case scenario: in windows 10, add quick open menu @ mouse right-click menu (regedit command: path/nvim-qt.exe %1), then open .v file with right-click;

for Nvim load file sequence different from GVIM, so Gvim work pretty, but Nvim work with error alarm;

global variable g:verilog_syntax defined @plugin/verilog_systemverilog.vim file ,but the execute time later than @syntax/verilog_systemverilog.vim and @indent/verlog/verilog_systemverilog.vim,

so I cut the variable define to ftplugin/verilog_systemverilog.vim, and it works now;

图片

图片

thanks again for your great share;

from verilog_systemverilog.vim.

vhda avatar vhda commented on June 11, 2024

Loading the plugin folders first is the normal vim behavior, to which I'm pretty sure neovim is compatible. How are you loading the plugins?

from verilog_systemverilog.vim.

microway199x avatar microway199x commented on June 11, 2024

For all plugins I used, I just put it @. appdata/nvim folder.
For neovim just copy all files under vimfiles/ direct.
if sequence loaded is right, the error is nonlogical.

Personally,put some code to ftplugin and make it work right first. maybe for other user, it work correct.

thanks

from verilog_systemverilog.vim.

vhda avatar vhda commented on June 11, 2024

I was wrong: https://neovim.io/doc/user/starting.html#initialization
Apparently Neovim uses a different initialization order, where ftplugin and syntax are loaded before plugins.
I'll need some time to see what would be the best approach here.

from verilog_systemverilog.vim.

vhda avatar vhda commented on June 11, 2024

I'm unable to reproduce the errors you are seeing.
This is my script load order, with only this single plugin in nvim local config:

:scriptnames                                                                                                                                          
  1: /usr/share/nvim/runtime/ftplugin.vim
  2: /usr/share/nvim/runtime/indent.vim
  3: /usr/share/nvim/runtime/filetype.lua
  4: /usr/share/nvim/runtime/filetype.vim
  5: ~/.config/nvim/ftdetect/verilog_systemverilog.vim
  6: /usr/share/nvim/runtime/syntax/syntax.vim
  7: /usr/share/nvim/runtime/syntax/synload.vim
  8: ~/.config/nvim/plugin/verilog_systemverilog.vim
  9: /usr/share/nvim/runtime/plugin/gzip.vim
 10: /usr/share/nvim/runtime/plugin/health.vim
 11: /usr/share/nvim/runtime/plugin/man.vim
 12: /usr/share/nvim/runtime/plugin/matchit.vim
 13: /usr/share/nvim/runtime/pack/dist/opt/matchit/plugin/matchit.vim
 14: /usr/share/nvim/runtime/plugin/matchparen.vim
 15: /usr/share/nvim/runtime/plugin/netrwPlugin.vim
 16: /usr/share/nvim/runtime/plugin/rplugin.vim
 17: /usr/share/nvim/runtime/plugin/shada.vim
 18: /usr/share/nvim/runtime/plugin/spellfile.vim
 19: /usr/share/nvim/runtime/plugin/tarPlugin.vim
 20: /usr/share/nvim/runtime/plugin/tohtml.vim
 21: /usr/share/nvim/runtime/plugin/tutor.vim
 22: /usr/share/nvim/runtime/plugin/zipPlugin.vim
 23: /usr/share/nvim/runtime/scripts.vim
 24: ~/.config/nvim/ftplugin/verilog_systemverilog.vim
 25: ~/.config/nvim/indent/verilog_systemverilog.vim
 26: ~/.config/nvim/syntax/verilog_systemverilog.vim
 27: ~/.config/nvim/autoload/verilog_systemverilog.vim

The ftdetect and plugin folders are the first to be loaded, and only at the end (after the buffer is loaded, I assume) will the remaining folders be loaded.
Could you try opening the Verilog file with nvim -u NONE?

from verilog_systemverilog.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.