Coder Social home page Coder Social logo

lunarvim / lunarvim Goto Github PK

View Code? Open in Web Editor NEW
17.5K 119.0 1.5K 13.83 MB

🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.

Home Page: https://www.lunarvim.org

License: GNU General Public License v3.0

Lua 86.13% Shell 8.74% Dockerfile 0.64% Makefile 0.31% PowerShell 4.19%
neovim vim vimrc nvim ide lunarvim lua linters formatters snippets

lunarvim's Introduction

lunarvim's People

Contributors

abzcoding avatar ahmedkhalf avatar atropos112 avatar bob3000 avatar chaesngmin avatar chase avatar christianchiarulli avatar cpea2506 avatar danielo515 avatar ghmhd avatar github-actions[bot] avatar hulufei avatar ichigo-gyunyu avatar jameswalmsley avatar kylo252 avatar lmarlow avatar lostneophyte avatar lvimuser avatar meijieru avatar opalmay avatar pasibergman avatar rebuilt avatar ssbanerje avatar tafryn avatar tastyep avatar uzaaft avatar williamgoulois avatar xaerru avatar xeluxee avatar younger-1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lunarvim's Issues

Which-keys

I cut and paste the which-keys.vim file you have, but noticed that the final line was giving me the following error:

Screenshot from 2020-05-16 20-24-47

I commented out the line, and the error has gone away. I would be curious to know what I am missing out on. Thanks so much!

EACCES: permission denied, rename '/tmp/nvimQ7ueu1/coc-snippets-SMqLIz' -> '/home/john/.config/coc/extensions/node_modules/coc-snippets'

Hello i Installed in one command your settings, and had this problems.
Every plugin gives same error that i should to rename plugs. After renaming and deleting tmp/nvimQ7ueu1 folder, i restarted nvim. Folder was created again and errors steel there. Im new in all this stuff, hope you can tell me what does nvim wants from me. Thanks. Sorry for writing my problem in Issues section.
screenshot

jk/kj in vscode not working

jk and kj are working perfectly in nvim but vscode isn't going to normal mode after this keys are pressed.

Ranger crashed

Hi Chris! Thank you for your awesome config! I love it.
I just update config recently and ranger crashes for some reason. Can you help me.
When I trying to run it in nvim I get that error
Thank you for you help!

Invalid linemode: devicons; should be metatitle/permissions/fileinfo/filename
ranger version: 1.7.1, executed with python 2.7.12
Locale: en_US.UTF-8
Current file: None
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ranger/core/main.py", line 122, in main
    ranger.api.hook_init(fm)
  File "/home/manhee/.config/nvim/autoload/plugged/rnvimr/ranger/plugins/hacks.py", line 377, in <lambda>
    ranger.api.hook_init = lambda fm: Hacks(fm, OLD_HOOK_INIT).hook_init()
  File "/home/manhee/.config/nvim/autoload/plugged/rnvimr/ranger/plugins/hacks.py", line 42, in hook_init
    self.fix_pager()
  File "/home/manhee/.config/nvim/autoload/plugged/rnvimr/ranger/plugins/hacks.py", line 151, in fix_pager
    if not self.commands.get_command('EditFile'):
  File "/usr/lib/python2.7/dist-packages/ranger/api/commands.py", line 62, in get_command
    raise KeyError
KeyError

ranger crashed.  Please report this traceback at:
https://github.com/hut/ranger/issues

[Process exited 1]

emmet for .ejs files

How i configure the coc-settings.json to support emmet snipets in ejs files?

"emmet.includeLanguages": {
"ejs": "html",
},

that's solution don't working.

[Feature Consideration] fVim as a front-end

Hello there, since I have notice that fVim is good for behaving as a front-end for neovim, should we consider use it?
It got:
GUI framework
HiDPI support -- try dragging it across two screens with different DPIs ;)
High performance rendering, low latency (60FPS on 4K display with reasonable font size!)
GPU acceleration

Thanks!

git clone needs updating

you have

git clone https://github.com/ChristianChiarulli/nvim.git ~/.config

but it should be

git clone https://github.com/ChristianChiarulli/nvim.git ~/.config/nvim

Vim not finding start-screen.vim

I'm sure I'm missing something basic, but upon copying your folder structure with start-screen.vim file as you have it in plug-config, I'm still getting the standard start screen. Any thoughts would be greatly appreciated!

[vista.vim] Error when calling

Hi everybody! I encountered the following error.
Annotation 2020-06-19 115455
How can I fix it?
Here is ': checkheadlth':
Thank you for you help!

health#coc#check

  • OK: Environment check passed

  • OK: Javascript bundle build/index.js found

  • OK: Service started

health#rnvimr#check

OS

  • OK: Name: Linux

Ranger

  • ERROR: Ranger not Found

Pynvim

  • OK: Version: 0.4.1

Ueberzug (optional)

  • WARNING: Ueberzug is not found in Python Lib

RPC

  • OK: Install lib for checkhealth successfully
  • ERROR: RPC: timeout 3s
  • ERROR: Vim(call):E900: Invalid channel id
  • OK: Clean lib for checkhealth successfully

health#floaterm#check

  • OK: Terminal feature is OK
  • OK: Floating window feature is OK
  • OK: nvr is OK

health#nvim#check

Configuration

  • OK: no issues found

Performance

  • OK: Build type: Release

Remote Plugins

  • OK: Up to date

terminal

  • INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
  • INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~

health#provider#check

Clipboard (optional)

  • WARNING: No clipboard tool found. Clipboard registers ("+ and "*) will not work.
    • ADVICE:
      • :help |clipboard|

Python 2 provider (optional)

  • WARNING: No Python executable found that can import neovim. Using the first available executable for diagnostics.
  • ERROR: Python provider error:
    • ADVICE:
      • provider/pythonx: Could not load Python 2:
        /usr/bin/python2 does not have the "neovim" module. :help |provider-python|
        /usr/bin/python2.7 does not have the "neovim" module. :help |provider-python|
        python2.6 not found in search path or not executable.
        python not found in search path or not executable.
  • INFO: Executable: Not found

Python 3 provider (optional)

  • INFO: g:python3_host_prog is not set. Searching for python3 in the environment.
  • INFO: Multiple python3 executables found. Set g:python3_host_prog to avoid surprises.
  • INFO: Executable: /usr/bin/python3
  • INFO: Other python executable: /bin/python3
  • INFO: Python version: 3.8.2
  • INFO: pynvim version: 0.4.1
  • OK: Latest pynvim is installed.

Ruby provider (optional)

  • WARNING: ruby and gem must be in $PATH.
    • ADVICE:
      • Install Ruby and verify that ruby and gem commands work.

Node.js provider (optional)

  • INFO: Node.js: v10.19.0
  • INFO: Neovim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js
  • OK: Latest "neovim" npm/yarn package is installed: 4.9.0

Could not enter value

Could not enter value. This is because of your configuration, NVIM or something else. I tried it in VIM and it's okay.
Thanks!!!
Annotation 2020-06-21 170546

Toggle terminal not working

If I open a new terminal with <space>t; and the toggle it with <space>tt, if I try to toggle it again it does not popup.

Btw thanks for this repo, it's awesome ❤️

Cpp Autocomplete Issue

I do not have c++ autocomplete.
It works python fine. I can write cpp code and run it but there is no intellisense
Thank you,

Failed to install nvim setup

Hi, I'd like to install your vim setup, but I think there's a missing file in the master branch because I keep getting this error.

bash <(curl -s https://raw.githubusercontent.com/ChristianChiarulli/nvim/master/utils/install.sh)
Installing Nvim Mach 2
pip installed, moving on...
node installed, moving on...
pynvim installed, moving on...
Cloning Nvim Mach 2 configuration
Cloning into '/home/pablo/.config/nvim'...
remote: Enumerating objects: 153, done.
remote: Counting objects: 100% (153/153), done.
remote: Compressing objects: 100% (101/101), done.
remote: Total 1348 (delta 55), reused 121 (delta 31), pack-reused 1195
Receiving objects: 100% (1348/1348), 5.50 MiB | 5.55 MiB/s, done.
Resolving deltas: 100% (726/726), done.
mv: cannot stat '/home/pablo/.config/nvim/utils/init.vim': No such file or directory

fzf config issue

Hey Chris... Got a couple of issues with your config.

  1. :Rg does not open a floating window, it opens up at the bottom.

  2. The floating window has these ugly thick borders.

Screen Shot 2020-06-07 at 10 57 12 pm

Multiline commenting is not woriking

Multi line commenting

Whenever I try to comment multiple line after selection in visual mode, it just comment the last line I have selected.
I installed nvim via your script.

Can you tell me what to do ?

FZF default command ERROR

@ChristianChiarulli sorry to revive but I have ripgrep installed and getting the same error as #13

Changing let $FZF_DEFAULT_COMMAND="rg --files --hidden --glob '!.git/**'"
to let $FZF_DEFAULT_COMMAND="rg --files --hidden --glob=!.git/**" fixes this issue for me

Running the command in my term works fine.
Running :Rg inside nvim also works fine

I don't think I need floatingterm plugin (I dont have it installed) but you tell me.

I'm on windows 10 using WindowsTerminal with powershell
also getting this after executing a FZF search with which-key>search>FZF, complete the search, upon next keypress the error shows up (above issue fixed, this must be a separate issue):

Error running ^"C:\Users\rainy\.config\nvim\autoload\plugged\fzf/bin/fzf^" --history ^"C:\Users\rainy\.local\share\fzf-history/FZF^" ^"--color=bg+:242,border:0,spinner:11,hl:14,header:14,info:81,pointer:11,marker:11,prompt:11,hl+:11^" ^"--multi^" ^"--prompt^" ^"C:\r\chatterino2\\^" --expect=ctrl-v,ctrl-x,ctrl-t --no-height > C:\Users\rainy\AppData\Local\Temp\nvimOKyc7v\0

Mac support

Hi @ChristianChiarulli ,
I cloned the repo and themes are applied.
However I'm not able to use leader key ?
Can it be a mac-specific thing ? Do I need to do something differently for mac?

When I type <, I got always <>. How to change it ?

When I wrote cpp file , I want to type

std::cout<<"something"......

But I got :

std::cout<<>.....

I find way to change this. But I scanned all the plugins, and remove all the web plugins, I did't change this.
Can you tell me how this actions is created? I wan't to change this.
It's a minor fault. I will appreciate if you can give me some advice!

coc-explorer causes nvim to close on buffer delete

Hi I am having an issue with buffers deletion when using coc-explorer.

I observed the following:

  • when I open multiple files in different buffers using coc-explorer and try delete a single buffer with the :bd command, nvim quits.
  • when I open multiple files in different buffers using coc-explorer and then quit coc-explorer with :q and then close a single buffer nvim deletes the buffer as normal
  • further when I use other methods of opening files such as fzr or ranger and no coc-explorer at all I am not getting this issue.

Start Screen is not loading

I cut and paste your start-screen.vim file into the appropriate folder, after having installed the plugin, and included the source in init.vim. However, I get an error message upon opening nvim.

Screenshot from 2020-05-16 19-31-53

Any thought about what I've missed would be much appreciated!

Cannot use vim-surround

Hi Chist,

Love your work. I'm really new to nvim. I coundn't use the vim-surround. The PlugStatus is OK. Then I copy tpope/vim-surround.vim into plug-config folder and source it in init.vim but still not working. Please advise. Thanks.

Icons not working in explorer

I'm having my icons come up like this after being fully setup. Everything else seems to work fine. (Side note: if anyone can figure out how to get WordPress PHP stubs working with a language server, that'd be great too!)

Screenshot from 2020-09-13 09-26-31

recommended installs

Hey, I enjoyed the which-keys video you demo'd on youtube! will definitely try to add which-key and maybe float-term, bat to my own setup.

Just wondering why
ripgrep silver_searcher fd
are recommended? It seems like they all do approximately the same things and I only see rg being used in your vimrc.

Similarly, saw you're using coc.vim, so trying to understand the other cases where you may use ctags. Is there something else to do to setup universal-ctags?

As a side note-I haven't installed universal-ctags it but looks like xcode dev tools comes with some version of ctags which I have. However running :Tags (via fzf) fails to generate ctags for me, not sure if due to default -R flag (seems invalid)

thanks!

I failed to install Nvim Mach 2 by the command line

I like your settings for neovim very much and have had a try.

MacBook Pro (15-inch, 2016)
version 10.15.5

node
v10.21.0

I installed the nvim with homebrew brew install nvim
nvim --version
neovim: stable 0.4.2 (bottled)

then I ran the command under current user account.
bash <(curl -s https://raw.githubusercontent.com/ChristianChiarulli/nvim/master/utils/install.sh)
everything was good and without any errors in the command line(terminal)

But when I opened the neovim by nvim, I got errors like this:
image

and after I pressed any key, I got many coc errors like:
image

I also tried to reinstall the match 2 with sudo but still failed with errors "bad file descriptor"
image

Furthermore, it seems most of the settings of nvim failed to work such as the theme, colors, etc.
I want to make my nvim look like the theme in your video such as "https://www.youtube.com/watch?v=65Wq4fjREUU".
e.g.
image

Could u please give me some help? thx.

Don't understand this <TAB>: completion line

Hi, I'm going through your tutorials and copying bits from here and there and came across this line in your mappings file:

" <TAB>: completion.
inoremap <silent> <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"

I see it's something to do with tab-completion for something or other but can't figure out what it means or why it's necessary.
It looks to me like you're mapping to to scroll down the list of completions but if I comment this line out I seem to get the same behaviour. I've had a google and found this but I still think I'm missing something.

Would you mind shedding some light?

Cheers

Better which-key session management

Hi @ChristianChiarulli I've been following your tutorials on YouTube and setting my init.vim manually instead of pulling your whole config and added a little something I think you may like so thought I'd share:

let g:which_key_map.S = {
      \ 'name' : '+Session' ,
      \ 'c' : [':SClose'          , 'Close Session']  ,
      \ 'd' : [':SDelete'         , 'Delete Session'] ,
      \ 'l' : [':SLoad'           , 'Load Session']     ,
      \ 's' : [':Startify'        , 'Start Page']     ,
      \ 'S' : [':SSave'           , 'Save Session']   ,
      \ }

This makes navigating saved sessions a bit more natural for me and the only difference is that you have to type an extra S to save the session.

Thanks for the great work and all the videos, really looking forward to more!

Wrong color scheme with "termguicolors"

I have this strange problem with the color theme. Colors in tmux don't look good when "set termguicolors" is turned on, but when I turn it off I have another error:

Error detected while processing /home/alejandro/.config/nvim/init.vim:
line 42
& thermicolos must be set

How can i disable termguicolors?

This is with termguicolors on:
2020 06 25-17 11 18 screenshot

and this is without:
2020 06 25-17 10 45 screenshot

OS: Linux manjaro-gs 5.7.0-3-MANJARO
Terminal: rxvt-unicode (urxvt) v9.22
Tmux: tmux 3.1b

NVim init file:

"    ____      _ __        _
"   /  _/___  (_) /__   __(_)___ ___
"   / // __ \/ / __/ | / / / __ `__ \
" _/ // / / / / /__| |/ / / / / / / /
"/___/_/ /_/_/\__(_)___/_/_/ /_/ /_/


" Always source these
source $HOME/.config/nvim/vim-plug/plugins.vim
source $HOME/.config/nvim/general/settings.vim
source $HOME/.config/nvim/general/functions.vim
source $HOME/.config/nvim/keys/mappings.vim
source $HOME/.config/nvim/keys/which-key.vim

" Source depending on if VSCode is our client
if exists('g:vscode')
    " VSCode extension
  source $HOME/.config/nvim/vscode/windows.vim
  source $HOME/.config/nvim/plug-config/easymotion.vim
else
  " ordinary neovim
  source $HOME/.config/nvim/themes/syntax.vim
  source $HOME/.config/nvim/themes/onedark.vim
  " source $HOME/.config/nvim/themes/space-vim.vim
  source $HOME/.config/nvim/themes/airline.vim
  source $HOME/.config/nvim/plug-config/rnvimr.vim
  source $HOME/.config/nvim/plug-config/fzf.vim
  source $HOME/.config/nvim/plug-config/nerd-commenter.vim
  source $HOME/.config/nvim/plug-config/rainbow.vim
  source $HOME/.config/nvim/plug-config/codi.vim
  source $HOME/.config/nvim/plug-config/quickscope.vim
  source $HOME/.config/nvim/plug-config/vim-wiki.vim
  source $HOME/.config/nvim/plug-config/sneak.vim
  source $HOME/.config/nvim/plug-config/coc.vim
  source $HOME/.config/nvim/plug-config/goyo.vim
  source $HOME/.config/nvim/plug-config/vim-rooter.vim
  source $HOME/.config/nvim/plug-config/start-screen.vim
  source $HOME/.config/nvim/plug-config/gitgutter.vim
  source $HOME/.config/nvim/plug-config/closetags.vim
  source $HOME/.config/nvim/plug-config/floaterm.vim
  source $HOME/.config/nvim/plug-config/vista.vim
  luafile $HOME/.config/nvim/lua/plug-colorizer.lua
  " source $HOME/.config/nvim/plug-config/easymotion.vim
endif

" Experimental

if !empty(glob("./paths.vim"))
  source $HOME/.config/nvim/paths.vim
endif
let g:polyglot_disabled = ['csv']

" Python
" https://realpython.com/python-debugging-pdb/ " breakpoint syntax is really cool
" also look into profiling as well
" let g:python_highlight_all=1

Onedark theme file:

" onedark.vim override: Don't set a background color when running in a terminal;
" if (has("autocmd") && !has("gui_running"))
"   augroup colorset
"     autocmd!
"     let s:white = { "gui": "#ABB2BF", "cterm": "145", "cterm16" : "7" }
"     autocmd ColorScheme * call onedark#set_highlight("Normal", { "fg": s:white }) " `bg` will not be styled since there is no `bg` setting
"   augroup END
" endif

"autocmd ColorScheme * call onedark#set_highlight("Normal", { "fg": s:white }) " `bg` will not be styled since there is no `bg` setting

hi Comment cterm=italic
let g:onedark_hide_endofbuffer=1
let g:onedark_terminal_italics=1
let g:onedark_termcolors=256

syntax on
colorscheme onedark


" checks if your terminal has 24-bit color support
"if (has("termguicolors"))
"    set termguicolors
"    hi LineNr ctermbg=NONE guibg=NONE
"endif

Floaterm pressing leader and t, doesnt give floaterm options.

Hi Christian!

I read your blog and these configuration files.

So I installed
Plug 'liuchengxu/vim-which-key'
Plug 'voldikss/vim-floaterm'

Also added these lines.

let g:which_key_map.t = {
      \ 'name' : '+terminal' ,
      \ ';' : [':FloatermNew --wintype=popup --height=6'        , 'terminal'],
      \ 'f' : [':FloatermNew fzf'                               , 'fzf'],
      \ 'g' : [':FloatermNew lazygit'                           , 'git'],
      \ 'd' : [':FloatermNew lazydocker'                        , 'docker'],
      \ 'n' : [':FloatermNew node'                              , 'node'],
      \ 'N' : [':FloatermNew nnn'                               , 'nnn'],
      \ 'p' : [':FloatermNew python'                            , 'python'],
      \ 'r' : [':FloatermNew ranger'                            , 'ranger'],
      \ 't' : [':FloatermToggle'                                , 'toggle'],
      \ 'y' : [':FloatermNew ytop'                              , 'ytop'],
      \ 's' : [':FloatermNew ncdu'                              , 'ncdu'],
      \ }
``

When I press leader, it shows
t → +prefix, instead of terminal. Also those options doesnt show up? Any clue why it might work like this?

Ranger on MacOS (iTerm, Alacritty)

QUICKFIX UPDATE

If you need ranger and run into the error below, you can use https://github.com/francoiscabrol/ranger.vim in the interim

Turns out this is already available in the vim-plug/plugins.vim; just swap the comments so it looks like this:
Screen Shot 2020-06-15 at 5 49 26 PM

Error

Screenshots

  • Opening Ranger

Screen Shot 2020-06-15 at 11 58 01 AM

  • Attempting to open file
Screen Shot 2020-06-15 at 3 41 31 PM
Detailed error log Error while loading plugin 'client' ~ Error while loading plugin 'hacks' ~ Error while loading plugin 'host' ~ Error while loading plugin 'service' ~ Error detected while processing /usr/local/Cellar/neovim/0.4.3/share/nvim/runtime/plugin/man.vim: ~ line 9: ~ E10: \ should be followed by /, ? or & ~ line 10: ~ E10: \ should be followed by /, ? or & ~ Error detected while processing function 8_LoadRemotePlugins[1]..8_GetManifest[1]..8_ ~ GetManifestPath: ~ line 7: ~ E117: Unknown function: stdpath ~ --- Autocommands --- ~ Error detected while processing /usr/local/Cellar/neovim/0.4.3/share/nvim/runtime/plugin/shada.vim: ~ line 9: ~ E10: \ should be followed by /, ? or & ~ line 10: ~ E10: \ should be followed by /, ? or & ~ line 11: ~ E10: \ should be followed by /, ? or & ~ --- Autocommands --- ~ line 13: ~ E10: \ should be followed by /, ? or & ~ line 14: ~ E10: \ should be followed by /, ? or & ~ --- Autocommands --- ~ line 16: ~ E10: \ should be followed by /, ? or & ~ line 17: ~ E10: \ should be followed by /, ? or & ~ line 18: ~ E10: \ should be followed by /, ? or & ~ line 19: ~ E10: \ should be followed by /, ? or & ~ line 20: ~ E35: No previous regular expression ~ line 21: ~ E10: \ should be followed by /, ? or & ~ line 22: ~ E10: \ should be followed by /, ? or & ~ --- Autocommands --- ~ line 24: ~ E10: \ should be followed by /, ? or & ~ line 25: ~ E10: \ should be followed by /, ? or & ~ line 26: ~ E10: \ should be followed by /, ? or & ~ line 27: ~ E10: \ should be followed by /, ? or & ~ line 28: ~ E10: \ should be followed by /, ? or & ~ line 29: ~ E10: \ should be followed by /, ? or & ~ --- Autocommands --- ~ line 31: ~ E10: \ should be followed by /, ? or & ~ line 32:
  • Ignoring error & opening file via Ranger

Screen Shot 2020-06-15 at 11 57 43 AM

    • This is achieved by hitting "Enter" a couple of times after the initial error
    • General functionality is broken (typing seemed to insert random characters in the buffer, switching between modes is intermittent, etc)

Screencast

https://www.loom.com/share/6e9ed4755420454292cccef892b17671



Attempted Solutions (Failed)

  • Removed ueberzug from .config/ranger/rc.conf
    • Ran :RnvimrSync after doing so



Exploring (TBD)

this seems to be an identical issue but author closed it; will update findings later

There are too many plugins so the start time of nvim is too slow

Dear vimer:
I saw you use dein once before, but now you use vim-plug as your vim plugins manager. Vim-plus is easier but it's too slow , I fork your nvim configrations and I found that the start time is more than 400 ms. What's about yours?
Can you make some improvements ( just using vim-plug), or just change to dein ?
Thanks, good luck with you!

E117: Unknown function onedark#set_highlight

First of all, thanks for the great config and views you put together for nvim. I don't think this is an issue on your config but I haven't found an answer to it somewhere else and maybe the answer is here. So I am getting this error setting Onedark theme.

Error detected while processing ColorScheme Autocommands for "*":
E117: Unknown function: onedark#set_highlight

Screen Shot 2020-09-13 at 6 04 07 PM

My init.vim is the exact same this add using the install in one command and I added this:
source $HOME/.config/nvim/themes/onedark.vim as you explain in the video.

My plugins.vim file looks like this:

" auto-install vim-plug
if empty(glob('~/.config/nvim/autoload/plug.vim'))
  silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  "autocmd VimEnter * PlugInstall
  autocmd VimEnter * PlugInstall | source $MYVIMRC
endif

call plug#begin('~/.config/nvim/autoload/plugged')

    " Better Comments
    Plug 'tpope/vim-commentary'
    " Change dates fast
    Plug 'tpope/vim-speeddating'
    " Convert binary, hex, etc..
    Plug 'glts/vim-radical'
    " Repeat stuff
    Plug 'tpope/vim-repeat'
    " Text Navigation
    Plug 'unblevable/quick-scope'
    " Useful for React Commenting 
    Plug 'suy/vim-context-commentstring'
    " highlight all matches under cursor
    " Plug 'RRethy/vim-illuminate'

  if exists('g:vscode')
    " Easy motion for VSCode
    Plug 'asvetliakov/vim-easymotion'
  else

    " Theme onedark
    Plug 'joshdick/onedark.vim'
    " Sneak
    Plug 'justinmk/vim-sneak'
    " Surround
    Plug 'tpope/vim-surround'
    " Files
    Plug 'tpope/vim-eunuch'
    " Have the file system follow you around
    Plug 'airblade/vim-rooter'
    " auto set indent settings
    Plug 'tpope/vim-sleuth'
    " Better Syntax Support
    " Plug 'nvim-treesitter/nvim-treesitter'
    Plug 'sheerun/vim-polyglot'
    " Cool Icons
    Plug 'ryanoasis/vim-devicons'
    " Auto pairs for '(' '[' '{'
    Plug 'jiangmiao/auto-pairs'
    " Closetags
    Plug 'alvan/vim-closetag'
    " Themes
    Plug 'christianchiarulli/nvcode.vim'
    " Plug 'ChristianChiarulli/nv-code'
    " Plug 'kyazdani42/blue-moon'
    " Intellisense
    Plug 'neoclide/coc.nvim', {'branch': 'release'}
    " Status Line
    Plug 'vim-airline/vim-airline'
    Plug 'kevinhwang91/rnvimr'
    " FZF
    Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
    Plug 'junegunn/fzf.vim'
    " Git
    Plug 'airblade/vim-gitgutter'
    Plug 'tpope/vim-fugitive'
    Plug 'tpope/vim-rhubarb'
    Plug 'junegunn/gv.vim'
    Plug 'rhysd/git-messenger.vim'
    " Terminal
    Plug 'voldikss/vim-floaterm'
    " Start Screen
    Plug 'mhinz/vim-startify'
    " Vista
    Plug 'liuchengxu/vista.vim'
    " See what keys do like in emacs
    Plug 'liuchengxu/vim-which-key'
    " Zen mode
    Plug 'junegunn/goyo.vim'
    " Snippets
    Plug 'honza/vim-snippets'
    Plug 'mattn/emmet-vim'
    " Interactive code
    Plug 'metakirby5/codi.vim'
    " Debugging
    " Plug 'puremourning/vimspector'
    " Better tabline
    Plug 'mg979/vim-xtabline'
    " undo time travel
    Plug 'mbbill/undotree'
    " Find and replace
    Plug 'ChristianChiarulli/far.vim'
    " Plug 'brooth/far.vim'
    " Auto change html tags
    Plug 'AndrewRadev/tagalong.vim'
    " live server
    Plug 'turbio/bracey.vim'
    " Smooth scroll
    Plug 'psliwka/vim-smoothie'
    " async tasks
    Plug 'skywind3000/asynctasks.vim'
    Plug 'skywind3000/asyncrun.vim'
    " Swap windows
    Plug 'wesQ3/vim-windowswap'
    " Markdown Preview
    Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & npm install'  }
    " Easily Create Gists
    Plug 'mattn/vim-gist'
    Plug 'mattn/webapi-vim'
    " Colorizer
    Plug 'norcalli/nvim-colorizer.lua'
    " Rainbow brackets
    " Plug 'luochen1990/rainbow'
    " Async Linting Engine
    " TODO make sure to add ale config before plugin
    " Plug 'dense-analysis/ale'
    " Better Whitespace
    Plug 'ntpeters/vim-better-whitespace'
    " Multiple Cursors
    " TODO add this back in change from C-n
    " Plug 'mg979/vim-visual-multi', {'branch': 'master'}
    Plug 'moll/vim-bbye'
    " Plug 'yuezk/vim-js'
    " Plug 'maxmellon/vim-jsx-pretty'
    " Plug 'jelera/vim-javascript-syntax'
    " Plugin Graveyard

    " jsx syntax support
    " Typescript syntax
    " Plug 'HerringtonDarkholme/yats.vim'
    " Multiple Cursors
    " Plug 'terryma/vim-multiple-cursors'
    " Plug 'kaicataldo/material.vim'
    " Plug 'NLKNguyen/papercolor-theme'
    " Plug 'tomasiser/vim-code-dark'
    " Vim Wiki
    " Plug 'https://github.com/vimwiki/vimwiki.git'
    " Better Comments
    " Plug 'jbgutierrez/vim-better-comments'
    " Echo doc
    " Plug 'Shougo/echodoc.vim'
    " Plug 'hardcoreplayers/spaceline.vim'
    " Plug 'vim-airline/vim-airline-themes'
    " Plug 'kaicataldo/material.vim', { 'branch': 'main' }
    " Plug 'arcticicestudio/nord-vim'
    " Ranger
    " Plug 'francoiscabrol/ranger.vim'
    " Plug 'rbgrouleff/bclose.vim'
    " Making stuff
    " Plug 'neomake/neomake'
    " Plug 'mhinz/vim-signify'
    " Plug 'easymotion/vim-easymotion'
    " Plug 'preservim/nerdcommenter'
    " Plug 'brooth/far.vim'
    " Plug 'atishay/far.vim'
  endif

call plug#end()

" Automatically install missing plugins on startup
autocmd VimEnter *
  \  if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
  \|   PlugInstall --sync | q
  \| endif

And my onedark.vim file in themes looks like this:

" onedar.vim override: Don't set a background color when running in a terminal;
if (has("autocmd") && !has("gui_running"))
  augroup colorset
    autocmd!
    let s:white = { "gui": "#ABB2BF", "cterm": "145", "cterm16" : "7" }
    autocmd ColorScheme * call onedark#set_highlight("Normal", { "fg": s:white }) " `bg` will not be styled since there is no `bg` setting
  augroup END
endif

hi Comment cterm=italic
let g:onedark_hide_endofbuffer=1
let g:onedark_terminal_italics=1
let g:onedark_termcolors=256

syntax on
colorscheme onedark


" checks if your terminal has 24-bit color support
if (has("termguicolors"))
    set termguicolors
    hi LineNr ctermbg=NONE guibg=NONE
endif

What could I be missing?

Strange font issues

There are some problems with fonts it shows like this?
Maybe is there specific fonts I need to install?

image

quickscope colors

I am currently using your config ATM.

Using night owl theme and making changes to quickscope colors in the config has no effect.

If I disable the theme it then works as per normal.

Any ideas?

BTW loving your videos and its making me use nvim more and more thanks to you.

Which theme of the terminal are you using?

Which theme of the terminal and nerd-front are you using? I have installed Nvim Mach 2 but it looks pretty ugly. I even cannot see the number in the line (it has the same color as the background). I am using the terminal on macOS.

Could you share your .vimrc settings?

Screen Shot 2020-07-18 at 19 49 33

Problem using FZF in NVim

I'm facing a problem in this particular line:
let $FZF_DEFAULT_COMMAND="rg --files --hidden --glob '!.git/**'"

It shows this error message:

image

when I comment it, it runs normally. But I'm not sure on what this line does so I'm afraid I might losing some feature that I don't know now.

Cant open a new buffer with ranger

I cant open the file in ranger, it's always open a new vim in float ranger. Eeven I saw the rnvimr FAQ, and add -!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@" +!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|your_file_type = ${VISUAL:-$EDITOR} -- "$@" to ~/.config/ranger/rifle.conf

Install process on Ubuntu

Here are the steps taken;

  1. sudo useradd -m -s /bin/bash nvim

  2. sudo su - nvim

  3. wget https://github.com/neovim/neovim/releases/download/v0.4.3/nvim-linux64.tar.gz

  4. tar -xzvf nvim-linux64.tar.gz

  5. rm nvim-linux64.tar.gz

  6. nano .profile

    • alias vi='~/nvim-linux64/bin/nvim'
  7. source .profile

  8. git clone https://github.com/ChristianChiarulli/nvim.git ~/.config/nvim

  9. pip install pynvim --user

  10. pip install neovim-remote --user

  11. python --version
    2.17.7

  12. pip install neovim-remote

Collecting neovim-remote
  Using cached https://files.pythonhosted.org/packages/ee/50/285d117340b96c050d25b63816ec5069821c3f0292428d66603aec47a43a/neovim-remote-2.1.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-Fx4_CE/neovim-remote/setup.py", line 6, in <module>
        with open(path.join(here, 'README.md'), encoding='utf-8') as f:
    TypeError: 'encoding' is an invalid keyword argument for this function

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Fx4_CE/neovim-remote/

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.