iamcco / clock.nvim

A Big Clock For Neovim
33 stars 1 forks source link

运行报错 #7

Closed yesyestoday2020 closed 4 years ago

yesyestoday2020 commented 5 years ago

能够成功安装但是,运行:ClockEnable命令报错,不知道怎么回事

截屏2019-10-1300 13 33

重启也没有效果

iamcco commented 5 years ago

没装成功

yesyestoday2020 commented 5 years ago

还有一个问题,在我安装后会影响到我重新映射的窗口跳转, control+h向左跳转变成了增加当前窗口尺寸 control+l向右跳转变成了减小窗口的尺寸

Coder-Liuu commented 4 years ago

能够成功安装但是,运行:ClockEnable命令报错,不知道怎么回事

截屏2019-10-1300 13 33

重启也没有效果

我也遇到了这个问题,请问你是怎么解决的呢?

iamcco commented 4 years ago

@Dreamer-liuyang 不知道你怎么安装的,插件没装成功

Coder-Liuu commented 4 years ago

@Dreamer-liuyang 不知道你怎么安装的,插件没装成功

  1. 首先把这两个拷贝进我的配置文件
    Plug 'iamcco/sran.nvim', { 'do': { -> sran#util#install() } }
    Plug 'iamcco/clock.nvim'                " 时钟
  2. 然后退出重新进了一下,然后执行:plugInstall命令,然后有了下面的界面 深度截图_选择区域_20200402194924
  3. 然后进行配置
    let g:clockn_enable = 1
    highlight ClockNormal guifg=#000000
    let g:clockn_to_top = 1
    let g:clockn_to_right = 1
  4. 最后运行:ClockEnable命令报错,不知道怎么回事
iamcco commented 4 years ago

肯定第一次装的时候 :call sran#util#install() 没装成功,重新执行下

Coder-Liuu commented 4 years ago

call sran#util#install()

显示了这个 [sran.nvim]: install completed 但是运行:ClockEnable命令还是会显示这不是编辑器的命令

iamcco commented 4 years ago

什么系统和版本的vim

Coder-Liuu commented 4 years ago

我的系统是Manjaro,neovim版本是0.4.3,具体情况请看下图。

image

iamcco commented 4 years ago

:echo sran#util#pre_build_version() 输出什么

Coder-Liuu commented 4 years ago

什么也没有输出。

iamcco commented 4 years ago

预编译版本的你系统不能用

删了重装(需要nodejs支持,如果没有的话不用折腾了,自己用vimscirpt写一个也没多少代码)

Plug 'iamcco/sran.nvim', { 'do': 'yarn' }

或者如果你用 coc.nvim 的话安装 https://github.com/iamcco/coc-clock

Coder-Liuu commented 4 years ago

OK,我试试安装COC的