From 902aee1bda8d57befd169525c24e385ed0a35ea8 Mon Sep 17 00:00:00 2001 From: Jaroslaw Konik Date: Sat, 29 Jul 2023 23:08:10 +0200 Subject: [PATCH] update --- init.lua | 42 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index 5f5e989..df0716d 100644 --- a/init.lua +++ b/init.lua @@ -11,8 +11,15 @@ if not vim.loop.fs_stat(lazypath) then end vim.opt.rtp:prepend(lazypath) +-- https://github.com/nvim-neotest/neotest +-- https://github.com/nvim-neorg/neorg +-- https://github.com/ggandor/leap.nvim +-- https://github.com/michaelb/sniprun +-- https://github.com/iamcco/markdown-preview.nvim +-- https://github.com/mrjones2014/legendary.nvim + require("lazy").setup({ - { "NeogitOrg/neogit", dependencies = "nvim-lua/plenary.nvim" }, + { "NeogitOrg/neogit", dependencies = "nvim-lua/plenary.nvim" }, "lewis6991/fileline.nvim", "mfussenegger/nvim-dap", { @@ -121,9 +128,9 @@ require("lazy").setup({ -- refer to the configuration section below }, }, - { "ellisonleao/glow.nvim", config = true, cmd = "Glow" }, + { "ellisonleao/glow.nvim", config = true, cmd = "Glow" }, "nvim-pack/nvim-spectre", - { "rcarriga/nvim-dap-ui", requires = { "mfussenegger/nvim-dap" } }, + { "rcarriga/nvim-dap-ui", requires = { "mfussenegger/nvim-dap" } }, }) require("dapui").setup() @@ -198,14 +205,14 @@ end, { TablineFileNameBlock }) local function get_terminal_bufs() return vim.tbl_filter(function(bufnr) return vim.api.nvim_buf_get_option(bufnr, "buftype") == "terminal" - and vim.api.nvim_buf_get_option(bufnr, "buflisted") + and vim.api.nvim_buf_get_option(bufnr, "buflisted") end, vim.api.nvim_list_bufs()) end local function get_non_terminal_bufs() return vim.tbl_filter(function(bufnr) return vim.api.nvim_buf_get_option(bufnr, "buftype") ~= "terminal" - and vim.api.nvim_buf_get_option(bufnr, "buflisted") + and vim.api.nvim_buf_get_option(bufnr, "buflisted") end, vim.api.nvim_list_bufs()) end @@ -446,8 +453,27 @@ wk.register({ o = { neogit.open, "Open Git" }, }, r = { + name = "Run", + j = { + "OverseerRun", + "Job", + }, + t = { + "TestNearest", + "Test", + }, + f = { + "TestFile", + "Test File", + }, + s = { + "TestSuite", + "Test Suite", + }, + }, + p = { name = "Refresh", - d = { vim.diagnostic.reset, "Refresh diagnostic" }, + d = { vim.diagnostic.reset, "Diagnostic" }, }, e = { name = "Eval", @@ -464,8 +490,8 @@ wk.register({ local current_buf_nr = vim.fn.bufnr() local all = vim.tbl_filter(function(bufnr) return current_buf_nr ~= bufnr - and vim.api.nvim_buf_get_option(bufnr, "buftype") ~= "terminal" - and vim.api.nvim_buf_get_option(bufnr, "buflisted") + and vim.api.nvim_buf_get_option(bufnr, "buftype") ~= "terminal" + and vim.api.nvim_buf_get_option(bufnr, "buflisted") end, vim.api.nvim_list_bufs()) for _, bufnr in ipairs(all) do require("bufdelete").bufdelete(bufnr, false)