mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 22:47:18 +01:00
stuff 🤷
This commit is contained in:
@@ -17,4 +17,16 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'dlvhdr/gh-addressed.nvim',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
'folke/trouble.nvim',
|
||||||
|
},
|
||||||
|
cmd = 'GhReviewComments',
|
||||||
|
keys = {
|
||||||
|
{ '<leader>gc', '<cmd>GhReviewComments<cr>', desc = 'GitHub Review Comments' },
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
3
lua/plugins/lang.lua
Normal file
3
lua/plugins/lang.lua
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
return {
|
||||||
|
{ 'dmmulroy/ts-error-translator.nvim' },
|
||||||
|
}
|
||||||
70
lua/plugins/needful.lua
Normal file
70
lua/plugins/needful.lua
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
local opts = {
|
||||||
|
tasks = {
|
||||||
|
{
|
||||||
|
name = 'ripgrep current directory',
|
||||||
|
cmd = 'rg ${pattern} ${cwd}',
|
||||||
|
tags = { 'ripgrep', 'cwd', 'search', 'pattern' },
|
||||||
|
ask = {
|
||||||
|
['${pattern}'] = {
|
||||||
|
title = 'Pattern to use',
|
||||||
|
default = 'error',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
window = {
|
||||||
|
name = 'Ripgrep',
|
||||||
|
close = false,
|
||||||
|
keep_current = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = 'ast-grep current directory',
|
||||||
|
cmd = 'ast-grep -p "${pattern}" ${cwd}',
|
||||||
|
tags = { 'ripgrep', 'cwd', 'search', 'pattern' },
|
||||||
|
ask = {
|
||||||
|
['${pattern}'] = {
|
||||||
|
title = 'Pattern to use',
|
||||||
|
default = '',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
window = {
|
||||||
|
name = 'ast-grep',
|
||||||
|
close = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
edit_mode = 'buffer', -- buffer, tab, split, vsplit
|
||||||
|
config_file = '.tasks.json', -- name of json config file for project/global config
|
||||||
|
config_order = { -- default: { project, global, opts }. Order in which
|
||||||
|
-- tasks are aggregated
|
||||||
|
'project', -- .task.json in project directory
|
||||||
|
'global', -- .tasks.json in stdpath('data')
|
||||||
|
'opts', -- tasks defined in setup opts
|
||||||
|
},
|
||||||
|
tag_source = true, -- display #project, #global, or #opt after tags
|
||||||
|
global_tokens = {
|
||||||
|
['${cwd}'] = vim.fn.getcwd,
|
||||||
|
['${do-the-needful}'] = 'please',
|
||||||
|
['${projectname}'] = function()
|
||||||
|
return vim.fn.system 'basename $(git rev-parse --show-toplevel)'
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
ask_functions = {
|
||||||
|
get_cwd = function()
|
||||||
|
return vim.fn.getcwd()
|
||||||
|
end,
|
||||||
|
current_file = function()
|
||||||
|
return vim.fn.expand '%'
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
'catgoose/do-the-needful.nvim',
|
||||||
|
event = 'BufReadPre',
|
||||||
|
keys = {
|
||||||
|
{ '<leader>np', [[<cmd>Telescope do-the-needful please<cr>]], 'n' },
|
||||||
|
{ '<leader>nn', [[<cmd>Telescope do-the-needful<cr>]], 'n' },
|
||||||
|
},
|
||||||
|
dependencies = 'nvim-lua/plenary.nvim',
|
||||||
|
opts = opts,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user