Compare commits

..

No commits in common. "58268b258e66573383d0a72a43f72b5206164b25" and "9285079f87637900a9b35eab600a5854073f1006" have entirely different histories.

4 changed files with 33 additions and 53 deletions

View File

@ -92,8 +92,7 @@ lvim.builtin.which_key.mappings["L"] = {
lvim.builtin.which_key.mappings["n"] = { lvim.builtin.which_key.mappings["n"] = {
name = "Notes", name = "Notes",
n = { "<CMD>ZkNew { group = vim.fn.input('Groupe: '), title = vim.fn.input('Titre: ') }<CR>", n = { "<CMD>ZkNew { title = vim.fn.input('Titre: ') }<CR>", "Créer une nouvelle note" },
"Créer une nouvelle note" },
o = { "<CMD>ZkNotes { sort = { 'modified' } }<CR>", "Ouvrir une note" }, o = { "<CMD>ZkNotes { sort = { 'modified' } }<CR>", "Ouvrir une note" },
O = { "<CMD>ZkTags<CR>", "Ouvrir les notes avec le tag sélectionné" }, O = { "<CMD>ZkTags<CR>", "Ouvrir les notes avec le tag sélectionné" },
f = { "<CMD>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Rechercher note: ') } }<CR>", f = { "<CMD>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Rechercher note: ') } }<CR>",
@ -125,6 +124,7 @@ lvim.builtin.terminal.open_mapping = "<C-t>"
lvim.builtin.treesitter.ensure_installed = { lvim.builtin.treesitter.ensure_installed = {
"bash", "bash",
"c", "c",
"comment",
"java", "java",
"javascript", "javascript",
"json", "json",
@ -375,6 +375,16 @@ lvim.plugins = {
]]) ]])
end, end,
}, },
-- -- telescope-project
-- {
-- "nvim-telescope/telescope-project.nvim",
-- event = "BufWinEnter",
-- setup = function()
-- vim.cmd ([[
-- packadd telescope.nvim
-- ]])
-- end,
-- },
-- trouble -- trouble
{ {
'folke/trouble.nvim', 'folke/trouble.nvim',
@ -401,7 +411,7 @@ lvim.plugins = {
let g:vimtex_view_method = "zathura" let g:vimtex_view_method = "zathura"
let g:vimtex_quickfix_enabled = 0 let g:vimtex_quickfix_enabled = 0
let g:vimtex_compiler_method = 'latexmk' let g:vimtex_compiler_method = 'latexmk'
let g:vimtex_view_use_temp_files = 0 let g:vimtex_view_use_temp_files = 1
]]) ]])
end, end,
}, },

View File

@ -42,7 +42,7 @@ path=(~/bin ~/.local/bin $path[@])
# >>> environment variables >>> # >>> environment variables >>>
export BROWSER=qutebrowser export BROWSER=qutebrowser
export EDITOR=$([[ $(command -v lvim) ]] && echo lvim || echo vim) export EDITOR=vim
export TERMINAL=alacritty export TERMINAL=alacritty
# export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"' # export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"

View File

@ -2,10 +2,6 @@
# #
# Uncomment the properties you want to customize. # Uncomment the properties you want to customize.
# NOTEBOOK SETTINGS
[notebook]
dir = "~/Notes"
# NOTE SETTINGS # NOTE SETTINGS
# #
# Defines the default options used when generating new notes. # Defines the default options used when generating new notes.
@ -16,25 +12,23 @@ dir = "~/Notes"
language = "fr" language = "fr"
# The default title used for new note, if no `--title` flag is provided. # The default title used for new note, if no `--title` flag is provided.
default-title = "Untitled" #default-title = "Untitled"
# Template used to generate a note's filename, without extension. # Template used to generate a note's filename, without extension.
#filename = "{{id}}" #filename = "{{id}}"
filename = "{{id}}-{{slug title}}"
# filename = "{{format-date now}}-{{slug title}}"
# The file extension used for the notes. # The file extension used for the notes.
extension = "md" #extension = "md"
# Template used to generate a note's content. # Template used to generate a note's content.
# If not an absolute path, it is relative to .zk/templates/ # If not an absolute path, it is relative to .zk/templates/
template = "default.md" template = "default.md"
# Path globs ignored while indexing existing notes. # Path globs ignored while indexing existing notes.
ignore = [ #ignore = [
"drafts/*", # "drafts/*",
"log.md" # "log.md"
] #]
# Configure random ID generation. # Configure random ID generation.
@ -44,13 +38,13 @@ ignore = [
# * alphanum: letters + numbers # * alphanum: letters + numbers
# * hex: hexadecimal, from a to f and 0 to 9 # * hex: hexadecimal, from a to f and 0 to 9
# * custom string: will use any character from the provided value # * custom string: will use any character from the provided value
id-charset = "alphanum" #id-charset = "alphanum"
# Length of the generated IDs. # Length of the generated IDs.
id-length = 4 #id-length = 4
# Letter case for the random IDs, among lower, upper or mixed. # Letter case for the random IDs, among lower, upper or mixed.
id-case = "lower" #id-case = "lower"
# EXTRA VARIABLES # EXTRA VARIABLES
@ -73,17 +67,12 @@ author = "Jeff Lance"
# the group. This can be useful to quickly declare a group by the name of the # the group. This can be useful to quickly declare a group by the name of the
# directory it applies to. # directory it applies to.
[group."journal"] #[group."<NAME>"]
paths = ["journal/daily"] #paths = ["<DIR1>", "<DIR2>"]
filename = "{{format-date now}}" #[group."<NAME>".note]
extension = "md" #filename = "{{format-date now}}"
template = "daily.md" #[group."<NAME>".extra]
#key = "value"
[group."travail"]
filename = "{{slug title}}_{{format-date now}}"
[group."wiki"]
filename = "{{format-date now}}_{{slug title}}"
# MARKDOWN SETTINGS # MARKDOWN SETTINGS
@ -124,7 +113,7 @@ pager = "less -FIRX"
# bat is a great tool to render Markdown document with syntax highlighting. # bat is a great tool to render Markdown document with syntax highlighting.
#https://github.com/sharkdp/bat #https://github.com/sharkdp/bat
fzf-preview = "bat -p --color always {-1}" # fzf-preview = "bat -p --color always {-1}"
# LSP # LSP
@ -162,7 +151,7 @@ dead-link = "error"
# Matches the notes created the last two weeks. For example: # Matches the notes created the last two weeks. For example:
# $ zk list recents --limit 15 # $ zk list recents --limit 15
# $ zk edit recents --interactive # $ zk edit recents --interactive
recents = "--sort created- --created-after 'last two weeks'" #recents = "--sort created- --created-after 'last two weeks'"
# COMMAND ALIASES # COMMAND ALIASES
@ -178,14 +167,7 @@ recents = "--sort created- --created-after 'last two weeks'"
# Here are a few aliases to get you started. # Here are a few aliases to get you started.
# Shortcut to a command. # Shortcut to a command.
l = "zk list $@" ls = "zk list $@"
c = "zk conf $@"
e = "zk edit $@"
el = "zk editlast $@"
h = "zk hist $@"
n = "zk new $@"
nt = 'zk new --title "$*"'
r = "zk recent $@"
# Default flags for an existing command. # Default flags for an existing command.
list = "zk list --quiet $@" list = "zk list --quiet $@"
@ -211,13 +193,4 @@ lucky = "zk list --quiet --format full --sort random --limit 1"
hist = "zk list --format path --delimiter0 --quiet $@ | xargs -t -0 git log --patch --" hist = "zk list --format path --delimiter0 --quiet $@ | xargs -t -0 git log --patch --"
# Edit this configuration file. # Edit this configuration file.
conf = '$EDITOR "${HOME}/.config/zk/config.toml"' conf = '$EDITOR "$XDG_CONFIG_HOME/.zk/config.toml"'
# Create a new daily journal note.
jour = 'zk new -g journal --no-input "$ZK_NOTEBOOK_DIR/journal/daily"'
# Create a new work note.
trav = 'zk new -g travail -t "$*" "$ZK_NOTEBOOK_DIR/travail"'
# Create a new wiki note.
wiki = 'zk new -g wiki -t "$*" "$ZK_NOTEBOOK_DIR/wiki"'

View File

@ -1,3 +0,0 @@
# {{format-date now "long"}}
Qu'ai-je fait aujourd'hui ?