Feat | Add zk-nvim, remove glow.nvim
This commit is contained in:
parent
5977609f47
commit
5e51f8ed36
@ -62,7 +62,7 @@ return require('packer').startup(function(use)
|
|||||||
use {
|
use {
|
||||||
'ms-jpq/coq_nvim',
|
'ms-jpq/coq_nvim',
|
||||||
branch = 'coq',
|
branch = 'coq',
|
||||||
after = 'nvim-lsp-installer',
|
after = {'nvim-lsp-installer', 'zk-nvim'},
|
||||||
run = ':COQdeps',
|
run = ':COQdeps',
|
||||||
config = function() require "plugins.coq" end
|
config = function() require "plugins.coq" end
|
||||||
}
|
}
|
||||||
@ -79,6 +79,7 @@ return require('packer').startup(function(use)
|
|||||||
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
-- formating and editing
|
-- formating and editing
|
||||||
use {"sbdchd/neoformat", cmd = "Neoformat"}
|
use {"sbdchd/neoformat", cmd = "Neoformat"}
|
||||||
use {
|
use {
|
||||||
@ -110,7 +111,6 @@ return require('packer').startup(function(use)
|
|||||||
after = 'nvim-treesitter',
|
after = 'nvim-treesitter',
|
||||||
config = function() require "plugins.matchup" end
|
config = function() require "plugins.matchup" end
|
||||||
}
|
}
|
||||||
-- Lua
|
|
||||||
use {
|
use {
|
||||||
'abecodes/tabout.nvim',
|
'abecodes/tabout.nvim',
|
||||||
config = function() require('tabout').setup {} end,
|
config = function() require('tabout').setup {} end,
|
||||||
@ -184,9 +184,9 @@ return require('packer').startup(function(use)
|
|||||||
-- integrations
|
-- integrations
|
||||||
use {"tpope/vim-fugitive", cmd = "G"}
|
use {"tpope/vim-fugitive", cmd = "G"}
|
||||||
use {
|
use {
|
||||||
"ellisonleao/glow.nvim",
|
"mickael-menu/zk-nvim",
|
||||||
branch = 'main',
|
filetypes = {'markdown'},
|
||||||
cmd = {"Glow", "GlowInstall"}
|
config = function() require "plugins.zk" end
|
||||||
}
|
}
|
||||||
|
|
||||||
-- fixes and misc. stuff
|
-- fixes and misc. stuff
|
||||||
|
21
lua/plugins/zk.lua
Normal file
21
lua/plugins/zk.lua
Normal 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" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user