diff options
author | 2022-05-12 14:53:03 -0300 | |
---|---|---|
committer | 2022-05-12 16:38:39 -0300 | |
commit | b99f54bec343f86d5d9db2d9dbdecfaa309efed3 (patch) | |
tree | 63032c01c9112319a44d35b7288cf2327852ef7d /etc/profile-m-z/nvim.profile | |
parent | disable-programs.inc: remove ~/.local/share/nvim (diff) | |
download | firejail-b99f54bec343f86d5d9db2d9dbdecfaa309efed3.tar.gz firejail-b99f54bec343f86d5d9db2d9dbdecfaa309efed3.tar.zst firejail-b99f54bec343f86d5d9db2d9dbdecfaa309efed3.zip |
nvim: add XDG_STATE_HOME path
Default paths as of neovim 0.7.0:
* backupdir: $XDG_DATA_HOME/nvim/backup//
* directory: $XDG_DATA_HOME/nvim/swap//
* undodir: $XDG_DATA_HOME/nvim/undo//
* viewdir: $XDG_DATA_HOME/nvim/view//
* shada file: $XDG_DATA_HOME/nvim/shada/main.shada
* log dir: $XDG_CACHE_HOME/nvim/log
Default paths as of [1]:
* backupdir: $XDG_STATE_HOME/nvim/backup//
* directory: $XDG_STATE_HOME/nvim/swap//
* undodir: $XDG_STATE_HOME/nvim/undo//
* viewdir: $XDG_STATE_HOME/nvim/view//
* shada file: $XDG_STATE_HOME/nvim/shada/main.shada
* log dir: $XDG_STATE_HOME/nvim/log
[1] https://github.com/neovim/neovim/pull/15583
Diffstat (limited to 'etc/profile-m-z/nvim.profile')
-rw-r--r-- | etc/profile-m-z/nvim.profile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/profile-m-z/nvim.profile b/etc/profile-m-z/nvim.profile index 27a0aec28..8a7e3a0e8 100644 --- a/etc/profile-m-z/nvim.profile +++ b/etc/profile-m-z/nvim.profile | |||
@@ -11,6 +11,7 @@ noblacklist ${HOME}/.vimrc | |||
11 | noblacklist ${HOME}/.cache/nvim | 11 | noblacklist ${HOME}/.cache/nvim |
12 | noblacklist ${HOME}/.config/nvim | 12 | noblacklist ${HOME}/.config/nvim |
13 | noblacklist ${HOME}/.local/share/nvim | 13 | noblacklist ${HOME}/.local/share/nvim |
14 | noblacklist ${HOME}/.local/state/nvim | ||
14 | 15 | ||
15 | include disable-common.inc | 16 | include disable-common.inc |
16 | include disable-devel.inc | 17 | include disable-devel.inc |
@@ -48,5 +49,6 @@ dbus-system none | |||
48 | read-only ${HOME}/.config | 49 | read-only ${HOME}/.config |
49 | read-write ${HOME}/.config/nvim | 50 | read-write ${HOME}/.config/nvim |
50 | read-write ${HOME}/.local/share/nvim | 51 | read-write ${HOME}/.local/share/nvim |
52 | read-write ${HOME}/.local/state/nvim | ||
51 | read-write ${HOME}/.vim | 53 | read-write ${HOME}/.vim |
52 | read-write ${HOME}/.vimrc | 54 | read-write ${HOME}/.vimrc |