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/ ~/ rsync --exclude=".*.swp" -av ./common/ ~/
popd popd
set_nightfox_vars set_nightfox_vars
sed -i "s/REPLACEHOME/$HOME/g" ~/.config/nvim/init.lua
sed -i "s/REPLACEHOME/$HOME/g" ~/.config/lvim/config.lua
end end
if test -d $homes_private_path/common if test -d $homes_private_path/common
pushd $homes_private_path pushd $homes_private_path

View File

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

View File

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

View File

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