Feat | Add zk-nvim, remove glow.nvim

This commit is contained in:
juan 2022-08-07 15:04:57 +08:00
parent 5977609f47
commit 5e51f8ed36
Signed by: juan
GPG Key ID: 5C1E5093C74F1DC7
2 changed files with 26 additions and 5 deletions

View File

@ -62,7 +62,7 @@ return require('packer').startup(function(use)
use {
'ms-jpq/coq_nvim',
branch = 'coq',
after = 'nvim-lsp-installer',
after = {'nvim-lsp-installer', 'zk-nvim'},
run = ':COQdeps',
config = function() require "plugins.coq" end
}
@ -79,6 +79,7 @@ return require('packer').startup(function(use)
end
}
-- formating and editing
use {"sbdchd/neoformat", cmd = "Neoformat"}
use {
@ -110,7 +111,6 @@ return require('packer').startup(function(use)
after = 'nvim-treesitter',
config = function() require "plugins.matchup" end
}
-- Lua
use {
'abecodes/tabout.nvim',
config = function() require('tabout').setup {} end,
@ -184,9 +184,9 @@ return require('packer').startup(function(use)
-- integrations
use {"tpope/vim-fugitive", cmd = "G"}
use {
"ellisonleao/glow.nvim",
branch = 'main',
cmd = {"Glow", "GlowInstall"}
"mickael-menu/zk-nvim",
filetypes = {'markdown'},
config = function() require "plugins.zk" end
}
-- fixes and misc. stuff

21
lua/plugins/zk.lua Normal file
View File

@ -0,0 +1,21 @@
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" },
},
},
})