[nvim] Fix path to Stylua
This commit is contained in:
parent
a77308a761
commit
b6980f07c5
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"workspace.checkThirdParty": false
|
"workspace.checkThirdParty": false,
|
||||||
}
|
"workspace.library": ["${3rd}/luassert/library", "${3rd}/luv/library"]
|
||||||
|
}
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
if !has('nvim-0.2.1') | finish | endif
|
if !has('nvim-0.2.1') | finish | endif
|
||||||
call extend(g:dotfiles_coc_extensions, {'coc-stylua': 1})
|
call extend(g:dotfiles_coc_extensions, {'coc-stylua': 1})
|
||||||
let g:coc_user_config['coc.preferences.formatOnSaveFiletypes'] = ['lua']
|
let g:coc_user_config['coc.preferences.formatOnSaveFiletypes'] = ['lua']
|
||||||
let g:coc_user_config['stylua.styluaPath'] = "/usr/bin/stylua"
|
|
||||||
|
" We're using Nix here, so point to the right path...
|
||||||
|
if has('macunix')
|
||||||
|
let g:coc_user_config['stylua.styluaPath'] = "/etc/profiles/per-user/alyxia/bin/stylua"
|
||||||
|
else
|
||||||
|
let g:coc_user_config['stylua.styluaPath'] = "/usr/bin/stylua"
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue