nvim: Fix ~ in config.

This commit is contained in:
raute 2023-11-29 17:33:08 +01:00
parent 1961ac1745
commit f80321ea86

View File

@ -31,7 +31,7 @@ vim.opt.list = false
vim.opt.hlsearch = true
-- vim.opt.listchars=tab:→\ ,space:·
vim.opt.undofile = true
vim.opt.undodir = "~/.local/share/nvim/undo"
vim.opt.undodir = "$HOME/.local/share/nvim/undo"
vim.opt.foldlevel = 99
vim.opt.ignorecase = true
@ -40,12 +40,12 @@ vim.opt.smartcase = true
vim.keymap.set("n", "<F1>", ":echo<CR>")
vim.keymap.set("i", "<F1>", "<C-o>:echo<CR>")
local function save()
function save()
vim.cmd(":keeppatterns :%s/\\s\\+$//e")
vim.cmd(":up")
end
local function toggle_buffer()
function toggle_buffer()
local buf = vim.api.nvim_win_get_buf(0)
if vim.bo[buf].readonly then
vim.cmd(":b#")
@ -131,7 +131,7 @@ vim.g.UltiSnipsExpandTrigger = "<enter>"
vim.g.UltiSnipsJumpForwardTrigger = "<c-b>"
vim.g.UltiSnipsJumpBackwardTrigger = "<c-z>"
vim.cmd([[
let g:UltiSnipsSnippetDirectory=['~/.config/nvim/ultisnips']
let g:UltiSnipsSnippetDirectory=['$HOME/.config/nvim/ultisnips']
]])
-- marks