add zk & update README

nix-components
pegasust 2022-08-29 05:36:44 -07:00
parent 71d59ea39f
commit 6aba37e473
3 changed files with 86 additions and 0 deletions

View File

@ -1 +1,53 @@
# dotfiles
Contains my configurations for the software I use.
I'm looking to move forward to configuration with NixOS, but until I get
a bit more experiment on NixOS, I'll keep this repository as simple as possible.
## How do I apply these config
- I will always first clone this repository, preferably from local source before
going from the github. `git clone https://github.com/pegasust/dotfiles`
### neovim
My main text editor. It's based on `vim`, but stays loyal to `lua` ecosystem
- Config file: `./nvim/init.lua`
- Command: `ln [-s] $PWD/nvim/init.lua ~/.config/nvim`
#### Notes
- Ensure that neovim is installed and invocable by `nvim`.
- My config based on rather experimental version of`nvim` (>=0.7.2)
- For information on installing neovim, visit their [github page](https://github.com/neovim/neovim/wiki/Installing-Neovim)
### tmux
Terminal multiplexor. Allows creating persistent sessions and multiple terminal windows
from one terminal.
- Config file: `./tmux/.tmux.conf`
- Command: `ln [-s] $PWD/tmux/.tmux.conf ~/.tmux.conf`
#### Notes
- Unsure if the minimum version of tmux. I have had an ancient HPC server
that does not respond well to one of the config lines.
### zk
Zettelkasten notebook. This is how I document my learning and reflect on myself
via writing and typing.
I am in the process of moving away from Obsidian so that I can write ZK notes
text-editor agnostically.
- Config file: `zk/config.toml`
- Command: `ln [-s] $PWD/zk/config.toml ~/.config/zk/config.toml`
- Templates: `zk/templates/`
- Command: `ln -s $PWD/zk/templates ~/.config/zk/templates`

View File

@ -158,6 +158,17 @@ require('telescope').setup {
}
require('zk').setup({
picker = "telescope",
lsp = {
config = {
cmd = {"zk", "lsp"},
name = "zk",
},
auto_attach = {
enable = true,
filetypes = {"markdown"}
},
},
})
pcall(require('telescope').load_extension, 'fzf')

23
zk/config.toml Normal file
View File

@ -0,0 +1,23 @@
[note] # Settings that reflect the creation of a new note
language = "en"
default-title = "Untitled"
filename = "{{date now 'timestamp'}}" # Loyal to my current style: 202208201345
extension = "md" # might switch to mdx
[extra]
author = "Hung Tran"
[format.markdown]
hashtags = true
multiword-tags = true
link-format = "wiki"
link-drop-extension = true
[tool]
editor = "nvim"
[lsp]
[lsp.diagnostics]
wiki-title = "hint"
dead-link = "error"