sainnhe / gruvbox-material

Gruvbox with Material Palette
MIT License
1.96k stars 166 forks source link

Escape paths containing space (because windows) #216

Closed slyboots closed 5 days ago

slyboots commented 5 days ago

The following content was showing up in :messages on startup after installing gruvbox-material and setting it as the colorscheme.

[gruvbox-material] Generated C:\Users\Dakota Lorance\AppData\Local\nvim-data\lazy\gruvbox-material\after\syntax
Failed to run `config` for gruvbox-material
vim/_editor.lua:431: C:\Users\Dakota Lorance\.config\nvim\init.lua..
nvim_exec2()
called at C:\Users\Dakota Lorance\.config\nvim\init.lua:0..
C:\Users\Dakota Lorance\AppData\Local\nvim-data\lazy\gruvbox-material\colors\gruvbox-material.vim[1622]..
function gruvbox_material#syn_gen, line 20: Vim(set):E518: Unknown option: Lorance\AppData\Local\nvim-data\lazy\gruvbox-material\after 

The problem was caused by the default name of my windows user directory containing a space.

e.g.: C:\Users\First Last\

antoineco commented 5 days ago

That's reasonable, thank you! 🙌