change default path to store files in neovim

This commit is contained in:
Kujiu 2023-10-29 02:41:04 +01:00
parent b52ac12634
commit 35b435584b
Signed by: kujiu
GPG key ID: ABBB2CAC6855599F
4 changed files with 10 additions and 8 deletions

View file

@ -288,6 +288,8 @@ function update-homes -d "Update homes configuration"
rsync --exclude=".*.swp" -av ./common/ ~/
popd
set_nightfox_vars
sed -i "s/REPLACEHOME/$HOME/g" ~/.config/nvim/init.lua
sed -i "s/REPLACEHOME/$HOME/g" ~/.config/lvim/config.lua
end
if test -d $homes_private_path/common
pushd $homes_private_path

View file

@ -259,7 +259,7 @@ vim.opt.list = true
vim.opt.spelllang = 'fr'
vim.g.grammalecte_cli_py = '/usr/bin/grammalecte-cli'
vim.g.languagetool_jar = '~/.bin/languagetool-commandline.jar'
vim.g.languagetool_jar = 'REPLACEHOME/.bin/languagetool-commandline.jar'
local opts = {noremap=true, silent=true}
local crates = require('crates')
@ -322,7 +322,7 @@ local high_str = require("high-str")
high_str.setup({
verbosity = 0,
saving_path = "~/.local/share/lvim/highstr/",
saving_path = "REPLACEHOME/.local/share/lvim/highstr/",
highlight_colors = {
-- color_id = {"bg_hex_code",<"fg_hex_code"/"smart">}
color_0 = {"#9d79d6", "smart"}, -- Cosmic charcoal

View file

@ -161,7 +161,7 @@ vim.opt.list = true
vim.opt.spelllang = 'fr'
vim.g.grammalecte_cli_py = '/usr/bin/grammalecte-cli'
vim.g.languagetool_jar = '~/.bin/languagetool-commandline.jar'
vim.g.languagetool_jar = 'REPLACEHOME/.bin/languagetool-commandline.jar'
local opts = {noremap=true, silent=true}
local crates = require('crates')
@ -225,7 +225,7 @@ local high_str = require("high-str")
high_str.setup({
verbosity = 0,
saving_path = "~/.local/share/lvim/highstr/",
saving_path = "REPLACEHOME/.local/share/lvim/highstr/",
highlight_colors = {
-- color_id = {"bg_hex_code",<"fg_hex_code"/"smart">}
color_0 = {"#9d79d6", "smart"}, -- Cosmic charcoal

View file

@ -140,7 +140,7 @@
#
# Default value: %BROWSER, otherwise lynx
#
browser "elinks %u"
browser "TERM=tmux-direct elinks %u"
#### cache-file
#
@ -897,9 +897,9 @@ include "~/.config/newsboat/colors.conf"
#
# macro k open; reload; quit +--+ "enter feed to reload it"
macro f set browser "firefox %u"; open-in-browser; set browser "elinks %u";
macro g set browser "offpunk %u"; open-in-browser; set browser "elinks %u";
macro p set browser "echo %u >> ~/.local/share/newsboat/queue"; open-in-browser; set browser "elinks %u";
macro f set browser "firefox %u"; open-in-browser; set browser "TERM=tmux-direct elinks %u";
macro g set browser "offpunk %u"; open-in-browser; set browser "TERM=tmux-direct elinks %u";
macro p set browser "echo %u >> ~/.local/share/newsboat/queue"; open-in-browser; set browser "TERM=tmux-direct elinks %u";
#### mark-as-read-on-hover
#