Skip to content

Commit

Permalink
Make space-vim able to be installed to location other than ~/.space-vim
Browse files Browse the repository at this point in the history
New Bug: layers/layers.py has incorrect path to info.vim
  • Loading branch information
rene-descartes2021 committed Sep 4, 2021
1 parent a70e4a4 commit 30aa016
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/autoload/spacevim/autocmd/unite.vim
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ let s:menus.v = {
\}
let s:menus.v.command_candidates = [
\['► init.vim',
\'e ~/.vimrc'],
\'e '.g:spacevim.base.'/init.vim'],
\['► .spacevim',
\'e ~/.spacevim'],
\['► vim-help',
Expand Down
2 changes: 1 addition & 1 deletion core/autoload/spacevim/map/manager.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let s:clap_enabled = get(g:, 'spacevim_enable_clap', 0)

let g:spacevim#map#manager#quick_open = [
\ '~/.spacevim',
\ '~/.space-vim/init.vim',
\ g:spacevim.base.'/init.vim',
\ '~/.bashrc',
\ '~/.zshrc',
\ '~/.tmux.conf',
Expand Down
4 changes: 2 additions & 2 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
scriptencoding utf-8

let g:spacevim = get(g:, 'spacevim', {})
let g:spacevim.base = $HOME.'/.space-vim'
let g:spacevim.base = fnamemodify(resolve(expand('<sfile>:p')),':h')
let g:spacevim.version = '0.9.0'

" Identify platform {
Expand All @@ -35,6 +35,6 @@ if g:spacevim.os.windows
endif
" }

set runtimepath+=$HOME/.space-vim/core
let &runtimepath = &runtimepath . ',' . g:spacevim.base . '/core'

call spacevim#bootstrap()
2 changes: 1 addition & 1 deletion layers/+tools/lsp/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function! s:lcn() abort
let g:LanguageClient_loggingFile = '/tmp/LanguageClient.log'
let g:LanguageClient_loggingLevel = 'INFO'
let g:LanguageClient_serverStderr = '/tmp/LanguageServer.log'
let g:LanguageClient_settingsPath = expand('~/.space-vim/layers/+tools/lsp/settings.json')
let g:LanguageClient_settingsPath = fnamemodify(resolve(expand('<sfile>:p')),':h').'/settings.json'

let g:LanguageClient_serverCommands = {
\ 'c': ['ccls', '--log-file=/tmp/cq.log'],
Expand Down

0 comments on commit 30aa016

Please sign in to comment.