Comments (6)
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.
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.
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.
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.
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.
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)
- System Verilog struct and class member auto completion HOT 3
- Coc-snippets don't trigger HOT 4
- Can I get this indent? if yes what settings do I need to use... HOT 22
- Syntax folding doesn't work HOT 1
- Not working in version 8.2 HOT 2
- Not working in Neovim 0.8.1 HOT 4
- Please tag the latest release HOT 1
- Automatically Create "work" folder
- Typedef classes are not handled by Omnicomplete HOT 3
- Verilog_syntax error HOT 3
- Undefined variable: g:verilog_syntax HOT 5
- Intendation is slow when inserting a new line into the thousands signal interface HOT 3
- This plugin breaks verilog_emacsauto.vim HOT 4
- [BUG] macros breaking indentation HOT 17
- Decrement operator followed by semicolon is treated as open statement HOT 1
- Add commentstring for vim commentary HOT 3
- Folding works on some files HOT 3
- Undefined variable: g:verilog_syntax HOT 2
- Indent conflict between modport and clocking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from verilog_systemverilog.vim.