nvim: Fix ~ in config.
This commit is contained in:
parent
1961ac1745
commit
f80321ea86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user