From 2cd497a205c3f24b920045e939f396218e4d2aeb Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 17 Feb 2026 23:28:56 +0300 Subject: added ZK plugin --- config/nvim/lua/plugins/lsp_saga.lua | 24 ++++++++++++++++++++++++ config/nvim/lua/plugins/lsp_signature.lua | 15 --------------- config/nvim/lua/plugins/telescope.lua | 7 +------ config/nvim/lua/plugins/zk.lua | 26 ++++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 21 deletions(-) delete mode 100644 config/nvim/lua/plugins/lsp_signature.lua create mode 100644 config/nvim/lua/plugins/zk.lua (limited to 'config/nvim/lua/plugins') diff --git a/config/nvim/lua/plugins/lsp_saga.lua b/config/nvim/lua/plugins/lsp_saga.lua index ab8177f..546c073 100644 --- a/config/nvim/lua/plugins/lsp_saga.lua +++ b/config/nvim/lua/plugins/lsp_saga.lua @@ -1,8 +1,32 @@ return { "nvimdev/lspsaga.nvim", + dependencies = { + "nvim-treesitter/nvim-treesitter", -- optional + "nvim-tree/nvim-web-devicons", -- optional + }, opts = { lightbulb = { enable = false, }, + diagnostic = { + show_layout = "float", + auto_preview = true, + keys = { + exec_action = "o", + quit = "q", + }, + }, + }, + keys = { + { + "e", + "Lspsaga show_buf_diagnostics", + desc = "Show buffer diagnostic", + }, + { + "we", + "Lspsaga show_workspace_diagnostics", + desc = "Show workspace diagnostic", + }, }, } diff --git a/config/nvim/lua/plugins/lsp_signature.lua b/config/nvim/lua/plugins/lsp_signature.lua deleted file mode 100644 index b9add0b..0000000 --- a/config/nvim/lua/plugins/lsp_signature.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - "ray-x/lsp_signature.nvim", - event = "VeryLazy", - opts = { - doc_lines = 1, - max_height = 3, - hint_prefix = "", - hint_prefix = { - above = "↙ ", - current = "← ", - below = "↖ ", - }, - floating_window = true, - }, -} diff --git a/config/nvim/lua/plugins/telescope.lua b/config/nvim/lua/plugins/telescope.lua index 228160f..e26a618 100644 --- a/config/nvim/lua/plugins/telescope.lua +++ b/config/nvim/lua/plugins/telescope.lua @@ -44,11 +44,6 @@ return { "Telescope commands_history", desc = "Commands history", }, - { - "e", - "Telescope diagnostics", - desc = "Diagnostics", - }, { "gi", "Telescope lsp_implementations", @@ -87,4 +82,4 @@ return { }) require("telescope").load_extension("fzf") end, -} \ No newline at end of file +} diff --git a/config/nvim/lua/plugins/zk.lua b/config/nvim/lua/plugins/zk.lua new file mode 100644 index 0000000..1b21a74 --- /dev/null +++ b/config/nvim/lua/plugins/zk.lua @@ -0,0 +1,26 @@ +return { + "zk-org/zk-nvim", + config = function() + require("zk").setup({ + -- Can be "telescope", "fzf", "fzf_lua", "minipick", "snacks_picker", + -- or select" (`vim.ui.select`). + picker = "telescope", + + lsp = { + -- `config` is passed to `vim.lsp.start(config)` + config = { + name = "zk", + cmd = { "zk", "lsp" }, + filetypes = { "markdown" }, + -- on_attach = ... + -- etc, see `:h vim.lsp.start()` + }, + + -- automatically attach buffers in a zk notebook that match the given filetypes + auto_attach = { + enabled = true, + }, + }, + }) + end, +} -- cgit v1.2.3