Compare commits
3 commits
47bf0fdd8e
...
ac0e66cd33
Author | SHA1 | Date | |
---|---|---|---|
ac0e66cd33 | |||
f21d6209b6 | |||
803632a27c |
5 changed files with 32 additions and 24 deletions
20
home/private_dot_config/lvim/lua/config/zk.lua
Normal file
20
home/private_dot_config/lvim/lua/config/zk.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
require("zk").setup({
|
||||
-- can be "telescope", "fzf" or "select" (`vim.ui.select`)
|
||||
-- it's recommended to use "telescope" or "fzf"
|
||||
picker = "telescope",
|
||||
lsp = {
|
||||
-- `config` is passed to `vim.lsp.start_client(config)`
|
||||
config = {
|
||||
cmd = { "zk", "lsp" },
|
||||
name = "zk",
|
||||
-- on_attach = ...
|
||||
-- etc, see `:h vim.lsp.start_client()`
|
||||
},
|
||||
|
||||
-- automatically attach buffers in a zk notebook that match the given filetypes
|
||||
auto_attach = {
|
||||
enabled = true,
|
||||
filetypes = { "markdown" },
|
||||
},
|
||||
},
|
||||
})
|
|
@ -7,33 +7,17 @@ lvim.plugins = {
|
|||
'catppuccin/nvim',
|
||||
as = 'catppuccin'
|
||||
},
|
||||
{ 'Djancyp/better-comments.nvim',
|
||||
config = function()
|
||||
require('better-comment').Setup()
|
||||
end
|
||||
},
|
||||
{ 'NoahTheDuke/vim-just' },
|
||||
{ 'ggandor/lightspeed.nvim' },
|
||||
{ 'elkowar/yuck.vim' },
|
||||
{
|
||||
'mickael-menu/zk-nvim',
|
||||
config = function()
|
||||
require("zk").setup({
|
||||
-- can be "telescope", "fzf" or "select" (`vim.ui.select`)
|
||||
-- it's recommended to use "telescope" or "fzf"
|
||||
picker = "telescope",
|
||||
lsp = {
|
||||
-- `config` is passed to `vim.lsp.start_client(config)`
|
||||
config = {
|
||||
cmd = { "zk", "lsp" },
|
||||
name = "zk",
|
||||
-- on_attach = ...
|
||||
-- etc, see `:h vim.lsp.start_client()`
|
||||
},
|
||||
|
||||
-- automatically attach buffers in a zk notebook that match the given filetypes
|
||||
auto_attach = {
|
||||
enabled = true,
|
||||
filetypes = { "markdown" },
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
config = p "zk";
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -45,11 +45,9 @@ alias fzf-bat="fzf --preview 'bat --style=numbers --color=always --line-range :5
|
|||
alias vivaldi="vivaldi-stable"
|
||||
|
||||
if is-executable zellij; then
|
||||
|
||||
alias zs="zellij -s"
|
||||
alias zl="zellij ls"
|
||||
alias za="zellij a"
|
||||
|
||||
fi
|
||||
|
||||
alias zenith="zenith -d 0 -n 0"
|
||||
|
|
|
@ -79,3 +79,8 @@ alias bathelp='bat --plain --language=help'
|
|||
help() {
|
||||
"$@" --help 2>&1 | bathelp
|
||||
}
|
||||
|
||||
format-qmd() {
|
||||
jupytext --from qmd $1 --pipe black
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ is-executable getconf && PATH=$($(command -v getconf) PATH)
|
|||
prepend-path "/bin"
|
||||
prepend-path "/usr/bin"
|
||||
prepend-path "/usr/local/bin"
|
||||
|
||||
PATH="$DOTFILES_DIR/bin:$PATH"
|
||||
PATH="$HOME/bin:$PATH"
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
|
|
Loading…
Reference in a new issue