zk: add various zk integrations
This commit is contained in:
parent
b511b2208a
commit
63197e6f84
6 changed files with 29 additions and 0 deletions
|
@ -27,3 +27,4 @@ require("thomas.plugins.copilot_plugin")
|
|||
require("thomas.plugins.nvim-tree")
|
||||
require("thomas.plugins.rainbow-delimiters")
|
||||
require("thomas.plugins.gitblame")
|
||||
require("thomas.plugins.zk")
|
||||
|
|
|
@ -41,6 +41,7 @@ return packer.startup(function(use)
|
|||
use("ellisonleao/gruvbox.nvim")
|
||||
use("sainnhe/gruvbox-material")
|
||||
use("kdheepak/lazygit.nvim")
|
||||
use("zk-org/zk-nvim")
|
||||
use("tpope/vim-fugitive")
|
||||
use("rcarriga/nvim-notify")
|
||||
use("tpope/vim-markdown")
|
||||
|
|
|
@ -9,6 +9,7 @@ treesitter.setup({
|
|||
-- enable syntax highlighting
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = true,
|
||||
},
|
||||
-- enable indentation
|
||||
indent = { enable = true },
|
||||
|
|
22
nvim/lua/thomas/plugins/zk.lua
Normal file
22
nvim/lua/thomas/plugins/zk.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
local zk_setup, zk = pcall(require, "zk")
|
||||
if not zk_setup then
|
||||
return
|
||||
end
|
||||
|
||||
zk.setup({
|
||||
picker = "telescope",
|
||||
|
||||
lsp = {
|
||||
config = {
|
||||
cmd = { "zk", "lsp" },
|
||||
name = "zk",
|
||||
-- on_attach = ...
|
||||
-- etc, see `:h vim.lsp.start_client()`
|
||||
},
|
||||
|
||||
auto_attach = {
|
||||
enabled = true,
|
||||
filetypes = { "markdown" },
|
||||
},
|
||||
},
|
||||
})
|
2
zk/config.toml
Normal file
2
zk/config.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[notebook]
|
||||
dir = "~/repos/eolas/zk" # same as "$HOME/notebook"
|
|
@ -3,6 +3,8 @@ export ZSH="/home/thomas/.oh-my-zsh"
|
|||
alias vim="nvim"
|
||||
alias cat="bat"
|
||||
alias grep="rg"
|
||||
alias z="cd /home/thomas/repos/eolas/zk"
|
||||
alias zn="/home/thomas/dotfiles/scripts/new_zk_note.sh"
|
||||
alias xhd="cd /run/media/thomas"
|
||||
alias cs-update="/home/thomas/repos/eolas/_scripts/auto_save.sh"
|
||||
alias cs-query="/home/thomas/repos/eolas/_scripts/query.sh"
|
||||
|
|
Loading…
Add table
Reference in a new issue