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