Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7405811
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: 系统运维

2023-03-01 17:04:27

在vim运行zls时,会提示找不到zls.json
可以通过zls config来配置
Welcome to the ZLS configuration wizard!
      *
       |\
      /* \
      |  *\
    _/_*___|_    x
      | @ @     /
     @     \   /
      \__-/   /


? Should this configuration be system-wide? (y/n) > y
Found zig executable '/root/zig/zig-linux/zig' in PATH.
? Which code editor do you use? (select one)

  - VSCode
  - Sublime
  - Kate
  - Neovim
  - Vim8
  - Emacs
  - Doom
  - Other

> vim8
? Do you want to enable snippets? (y/n) > Y
? Do you want to enable snippets? (y/n) > y
? Do you want to enable style warnings? (y/n) > y
? Do you want to enable semantic highlighting? (y/n) > y
? Do you want to enable .* and .? completions? (y/n) > y
Writing config to /etc/zls.json ... successful.

To use ZLS in Neovim/Vim8, we recommend using CoC engine.
You can get it from
Then, simply issue cmd from Neovim/Vim8 `:CocConfig`, and add this to your CoC config:

{
  "languageserver": {
    "zls" : {
      "command": "command_or_path_to_zls",
      "filetypes": ["zig"]
    }
  }
}


Thank you for choosing ZLS!
You have new mail in /var/spool/mail/root
[root@server232 zls]# cat /etc/zls.json 
{"zig_exe_path":"/root/zig/zig-linux/zig","enable_snippets":true,"warn_style":true,"enable_semantic_tokens":true,"operator_completions":true,"include_at_in_builtins":false,"max_detail_length":1048576}

阅读(176) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~