20250118.1737193804
This commit is contained in:
parent
ba81851219
commit
ed1f856b78
17 changed files with 43 additions and 398 deletions
|
@ -51,10 +51,3 @@ local api = vim.api
|
|||
-- Comments
|
||||
api.nvim_set_keymap("n", "<C-_>", "gtc", { noremap = false })
|
||||
api.nvim_set_keymap("v", "<C-_>", "goc", { noremap = false })
|
||||
|
||||
-- Zen mode
|
||||
api.nvim_set_keymap("n", "<leader>tw", ":Twilight<CR>", {})
|
||||
api.nvim_set_keymap("n", "<leader>zm", ":ZenMode<CR>", {})
|
||||
|
||||
-- back to the "parent" buffer
|
||||
api.nvim_set_keymap("n", "<BS>", "<C-^>", { noremap = true, silent = true })
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
|
@ -33,6 +36,7 @@ local opts = {
|
|||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
checker = { enabled = true },
|
||||
change_detection = {
|
||||
notify = false,
|
||||
},
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
local opt = vim.opt
|
||||
local api = vim.api
|
||||
|
||||
local M = {}
|
||||
-- local api = vim.api
|
||||
|
||||
-- Tab / Indentation
|
||||
opt.tabstop = 4
|
||||
|
@ -47,6 +45,7 @@ vim.opt.wildignore:append({
|
|||
"*/dist/*",
|
||||
"*/venv/*",
|
||||
"*/__pycache__/*",
|
||||
"*/.stfolder/*",
|
||||
})
|
||||
opt.splitkeep = "cursor"
|
||||
opt.shell = "zsh"
|
||||
|
@ -67,8 +66,6 @@ opt.iskeyword:append("-")
|
|||
opt.mouse = ""
|
||||
opt.clipboard:append("unnamedplus")
|
||||
opt.modifiable = true
|
||||
-- opt.guicursor =
|
||||
-- "n-v-c:block,i-ci-ve:block,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175"
|
||||
opt.encoding = "UTF-8"
|
||||
opt.fileencoding = "utf-8"
|
||||
opt.cursorline = false
|
||||
|
@ -150,9 +147,3 @@ vim.opt.langmap = {
|
|||
"Ю>",
|
||||
"Ё/",
|
||||
}
|
||||
|
||||
M.zettelkasten_dir = vim.fn.expand("~/PKM/01 - zettelkasten/")
|
||||
M.resources_dir = vim.fn.expand("~/PKM/05 - resources/")
|
||||
M.pkm_dir = vim.fn.expand("~/PKM/")
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue