diff options
| author | 2026-02-17 23:28:56 +0300 | |
|---|---|---|
| committer | 2026-02-17 23:28:56 +0300 | |
| commit | 2cd497a205c3f24b920045e939f396218e4d2aeb (patch) | |
| tree | cb4a06992b19d00d41cf566d88d4af91cf116c1a /config/nvim/lua/plugins | |
| parent | Починил zshrc (diff) | |
| download | dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.tar.gz dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.tar.bz2 dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.tar.xz dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.zip | |
added ZK plugin
Diffstat (limited to '')
| -rw-r--r-- | config/nvim/lua/plugins.lua | 2 | ||||
| -rw-r--r-- | config/nvim/lua/plugins/lsp_saga.lua | 24 | ||||
| -rw-r--r-- | config/nvim/lua/plugins/lsp_signature.lua | 15 | ||||
| -rw-r--r-- | config/nvim/lua/plugins/telescope.lua | 7 | ||||
| -rw-r--r-- | config/nvim/lua/plugins/zk.lua | 26 |
5 files changed, 52 insertions, 22 deletions
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 6ed6e72..fc51fb7 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -9,7 +9,6 @@ require("lazy").setup({ require("plugins.apidocs"), require("plugins.resize"), require("plugins.lsp_saga"), - require("plugins.lsp_signature"), require("plugins.autosave"), require("plugins.cmp"), require("plugins.treesitter"), @@ -23,6 +22,7 @@ require("lazy").setup({ require("plugins.columns"), require("plugins.gitsigns"), require("plugins.claudecode"), + require("plugins.zk"), }, { performance = { rtp = { 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 = { + { + "<leader>e", + "<cmd>Lspsaga show_buf_diagnostics<cr>", + desc = "Show buffer diagnostic", + }, + { + "<leader>we", + "<cmd>Lspsaga show_workspace_diagnostics<cr>", + 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 @@ -45,11 +45,6 @@ return { desc = "Commands history", }, { - "<leader>e", - "<cmd>Telescope diagnostics<CR>", - desc = "Diagnostics", - }, - { "gi", "<cmd>Telescope lsp_implementations<CR>", desc = "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, +} |
