Compare commits

..

No commits in common. "844e227103d9dfdbed78ce3451bffa90d09fa97d" and "c564fbff6d9aad19bb59f0b588f52fb7a4b182aa" have entirely different histories.

2 changed files with 48 additions and 39 deletions

View File

@ -51,7 +51,6 @@ export MYVIMRC="${HOME}/.vimrc"
export PASSWORD_STORE_DIR="${HOME}/Private/.password-store"
export PASSWORD_STORE_ENABLE_EXTENSIONS=True
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
export ZK_NOTEBOOK_DIR="${HOME}/Notes"
# <<< environment variables <<<
# >>> kitty completion >>>

View File

@ -116,15 +116,6 @@ lvim.builtin.which_key.mappings["l"] = {
},
}
lvim.builtin.which_key.mappings["n"] = {
name = "Notes",
n = { "<CMD>ZkNew { title = vim.fn.input('Titre: ') }<CR>", "Créer une nouvelle note" },
o = { "<CMD>ZkNotes { sort = { 'modified' } }<CR>", "Ouvrir une note"},
O = { "<CMD>ZkTags<CR>", "Ouvrir les notes avec le tag sélectionné" },
f = { "<CMD>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Rechercher note: ') } }<CR>", "Rechercher une note" },
F = { ":'<,'>ZkMatch<CR>", "Rechercher les notes contenant la sélection" },
}
lvim.builtin.which_key.mappings["o"] = { "<CMD>Telescope find_files<CR>", "Open a file" }
lvim.builtin.which_key.mappings["P"] = lvim.builtin.which_key.mappings["p"]
@ -135,6 +126,20 @@ lvim.builtin.which_key.mappings["s"] = { "<CMD>echom 'Sourcing' <BAR> source %<C
lvim.builtin.which_key.mappings["r"] = { "<CMD>Telescope oldfiles<CR>", "Open recent file" }
lvim.builtin.which_key.mappings["z"] = {
name = "Zettel",
c = { "<CMD>lua require('neuron/cmd').new_edit('/home/jeff/Notes/')<CR>", "Create new note" },
i = { "<CMD>lua require'neuron'.goto_index()<CR>", "Goto notes index"},
z = { "<CMD>lua require'neuron/telescope'.find_zettels()<CR>", "Find notes" },
Z = { "<CMD>lua require'neuron/telescope'.find_zettels {insert = true}<CR>", "Insert the found note ID" },
b = { "<CMD>lua require'neuron/telescope'.find_backlinks()<CR>", "Backlinks of the current note" },
B = { "<CMD>lua require'neuron/telescope'.find_backlinks {insert = true}<CR>", "As b but insert the found ID" },
t = { "<CMD>lua require'neuron/telescope'.find_tags()<CR>", "Find all tags and insert" },
s = { "<CMD>lua require'neuron'.rib {address = '127.0.0.1:8200', verbose = true}<CR>", "Start neuron server" },
n = { "<CMD>lua require'neuron'.goto_next_extmark()<CR>", "Goto next link" },
p = { "<CMD>lua require'neuron'.goto_prev_extmark()<CR>", "Goto previous link" },
}
lvim.builtin.which_key.mappings["x"] = { "<CMD>w! <BAR> q!<CR>", "Save and quit"}
lvim.builtin.which_key.mappings[";"] = {}
@ -374,11 +379,16 @@ lvim.plugins = {
})
end
},
-- zk: a plain text note-taking assistant
-- neuron: note taking
{
'mickael-menu/zk-nvim',
'oberblastmeister/neuron.nvim',
config = function()
require("zk").setup({
require("neuron").setup({
virtual_titles = true,
mappings = true,
run = nil,
neuron_dir = "~/Notes",
leader = ";z",
})
end,
},
@ -498,33 +508,33 @@ end
--
-- minimap view
-- lvim.autocommands = {
-- {
-- {"BufEnter", "Filetype"},
-- {
-- desc = "Open mini.map and exclude some filetypes",
-- pattern = { "*" },
-- callback = function()
-- local exclude_ft = {
-- "qf",
-- "NvimTree",
-- "toggleterm",
-- "TelescopePrompt",
-- "alpha",
-- "netrw",
-- }
lvim.autocommands = {
{
{"BufEnter", "Filetype"},
{
desc = "Open mini.map and exclude some filetypes",
pattern = { "*" },
callback = function()
local exclude_ft = {
"qf",
"NvimTree",
"toggleterm",
"TelescopePrompt",
"alpha",
"netrw",
}
-- local map = require('mini.map')
-- if vim.tbl_contains(exclude_ft, vim.o.filetype) then
-- vim.b.minimap_disable = true
-- map.close()
-- elseif vim.o.buftype == "" then
-- map.open()
-- end
-- end,
-- },
-- },
-- }
local map = require('mini.map')
if vim.tbl_contains(exclude_ft, vim.o.filetype) then
vim.b.minimap_disable = true
map.close()
elseif vim.o.buftype == "" then
map.open()
end
end,
},
},
}
-- wrap mode for json files
vim.api.nvim_create_autocmd("BufEnter", {