1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 04:00:03 +08:00
Commit Graph

21 Commits

Author SHA1 Message Date
Capi Etheriel
cdc4762c48
fix(core): fix xdg support 2023-05-07 22:21:32 +08:00
wsdjeg
2679430878 fix(xdg): fix xdg support 2023-03-23 22:59:36 +08:00
wsdjeg
e96ea26df6 fix(option): check packpath option 2023-03-11 22:50:18 +08:00
wsdjeg
996a79fb11 fix(vim): fix vimrc mkdir function 2023-02-21 18:42:11 +08:00
Olliver Schinagl
9e80d9bbfa
feat:(XDG): add XDG support
* fonts: Ensure mkfontscale is installed

When installing fonts, we have a silent igored error about missing
`mkfontscale` (and `mkfontdir`). Add a requirements check for it, and
'need' it when actually attempting to install fonts.


* fetch_repo: Never change a directory

It is bad practice to change the currents shell working directory. E.g.
never use 'cd' in a script.

For example, if `git pull` crashes, it would leave the user in the git
directory 'somewhere' on his filesystem, potentially causing confusion,
as the following `cd -` command is never executed.

There are of course always exceptions, such as when tooling does not
(easily) support out of tree invocation.

To solve this, run the command in a subshell, which won't touch the
current working directory as the exit of the subshell kept the previous
working directory.

A more difficult alternative would be to pass `--git-dir` and
`--work-tree` along to git, but this would make it far harder to read.

* fetch_repo: Do not duplicate code all over

There is no reason to put `need 'git'` all over the place, when the only
time we truly need it, is if we pull the repo. Make the code a little
less cluttered and a bit easier to read.

* install: Support XDG_CONFIG_HOME

Add support for the XDG specification for XDG_CONFIG_HOME. NeoVIM
already follows this, regular vim needs a bit of help there.

Closes: #3517

* SpaceVim.d: Support XDG paths

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2022-12-28 14:19:06 +08:00
wsdjeg
30bbccc5cb chore(init): remove main.vim 2022-11-20 12:33:55 +08:00
wsdjeg
12004cb080 chore(copyright): update copyright 2022-06-12 15:37:35 +08:00
wsdjeg
b53538deda chore(lua): add comment about lua package path 2022-03-29 21:48:33 +08:00
Shidong Wang
6ce3947d48
chore(copyright): update copyright 2021-11-13 16:37:24 +08:00
Wang Shidong
b8f867c5c3
refactor (#4035) 2021-01-02 17:58:45 +08:00
Wang Shidong
0b81705043
Update file head (#3379) 2020-09-19 16:19:58 +08:00
Wang Shidong
751725315f
Update copyright (#3744) 2020-08-31 21:24:27 +08:00
Wang Shidong
b4f9904579
Fix lua runtime path (#3317)
close #3265
2020-01-31 21:38:24 +08:00
Wang Shidong
bd73871f6c
Fix Buffer api (#3136) 2019-10-11 23:07:03 +08:00
Wang Shidong
8a6baac866
Add vim#window api (#3133) 2019-10-08 22:24:03 +08:00
wsdjeg
bdbb89bcf5 Enable nocompatible for vim 2018-05-02 20:26:58 +08:00
Wang Shidong
a2400b7d27
Relicense (#1406) 2018-02-15 22:25:03 +08:00
wsdjeg
23324197ca Add file header 2017-12-12 16:32:21 +08:00
wsdjeg
5738064623 Fix indent 2017-03-06 23:26:26 +08:00
wsdjeg
b98ab6ea7a Use config as main dir 2016-12-26 21:32:01 +08:00
wsdjeg
71b387a755 Add init.vim and vimrc to support vim/neovim 2016-12-26 20:36:18 +08:00