feat(nvim): add three new plugins

This commit is contained in:
Stefan Imhoff
2023-02-10 19:06:24 +01:00
parent afcbcdb154
commit d8b3d46ff8
5 changed files with 76 additions and 2 deletions

28
nvim/lua/plugins/gh.lua Normal file
View File

@@ -0,0 +1,28 @@
-- A fully featured GitHub integration for performing code reviews
-- https://github.com/ldelossa/gh.nvim
return {
"ldelossa/gh.nvim",
dependencies = { "ldelossa/litee.nvim" },
config = function()
require("litee.lib").setup()
require("litee.gh").setup({
jump_mode = "invoking",
map_resize_keys = false,
disable_keymaps = false,
icon_set = "default",
icon_set_custom = nil,
git_buffer_completion = true,
keymaps = {
open = "<CR>",
expand = "zo",
collapse = "zc",
goto_issue = "gd",
details = "d",
submit_comment = "<C-s>",
actions = "<C-a>",
resolve_thread = "<C-r>",
goto_web = "gx",
},
})
end,
}

View File

@@ -0,0 +1,28 @@
-- TMUX commands manager
-- https://github.com/otavioschwanck/tmux-awesome-manager.nvim
return {
"otavioschwanck/tmux-awesome-manager.nvim",
keys = {
-- stylua: ignore
{ "<leader>sT", function() vim.cmd(":Telescope tmux-awesome-manager list_terms") end, desc = "TMUX Awesome Manager" },
},
config = function()
local tmux = require("tmux-awesome-manager")
tmux.setup({
per_project_commands = {
astro = { { cmd = "pnpm dev", name = "Astro Dev" } },
},
session_name = "Neovim Terminals",
project_open_as = "window",
default_size = "30%",
open_new_as = "window",
})
tmux.run_wk({ cmd = "pnpm dev", name = "Astro Development Server" })
tmux.run_wk({ cmd = "yarn develop", name = "Brewery Server" })
tmux.run_wk({ cmd = "MD=${PWD}/packages/xdl/ yarn dev", name = "Brewery Fast Server" })
tmux.run_wk({ cmd = "yarn test:unit -u", name = "Brewery Unit Tests" })
end,
}

View File

@@ -0,0 +1,8 @@
-- Switch between hard and soft wrapping
-- https://github.com/andrewferrier/wrapping.nvim
return {
"andrewferrier/wrapping.nvim",
config = function()
require("wrapping").setup()
end,
}