update
This commit is contained in:
parent
67df419445
commit
902aee1bda
1 changed files with 34 additions and 8 deletions
42
init.lua
42
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 = {
|
||||
"<cmd>OverseerRun<cr>",
|
||||
"Job",
|
||||
},
|
||||
t = {
|
||||
"<cmd>TestNearest<cr>",
|
||||
"Test",
|
||||
},
|
||||
f = {
|
||||
"<cmd>TestFile<cr>",
|
||||
"Test File",
|
||||
},
|
||||
s = {
|
||||
"<cmd>TestSuite<cr>",
|
||||
"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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue