chore(plugins): catch up tracked plugin set with working tree
Bundle accumulated plugin work that had been sitting in the working tree: add CodeCompanion, golf, neotest (with rustaceanvim adapter), nvim-bacon, vim-pencil, and quickscope; bump rustaceanvim to ^6 with clippy/rustfmt settings and a neotest dependency; add an Obsidian checkbox order; rework trouble keymaps to free <leader>xx and add a sidebar diagnostic toggle. Drop cyberdream — tokyonight is the current colorscheme.
This commit is contained in:
parent
20e30e9687
commit
2ddfdf4dcc
|
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
'olimorris/codecompanion.nvim',
|
||||
opts = {},
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
},
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
return {
|
||||
'scottmckendry/cyberdream.nvim',
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
{ 'vuciv/golf' },
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
'nvim-neotest/neotest',
|
||||
dependencies = {
|
||||
'nvim-neotest/nvim-nio',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'antoinemadec/FixCursorHold.nvim',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
},
|
||||
config = function()
|
||||
require('neotest').setup {
|
||||
adapters = {
|
||||
require 'rustaceanvim.neotest',
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
-- other plugins
|
||||
{
|
||||
'Canop/nvim-bacon',
|
||||
config = function()
|
||||
require('bacon').setup {
|
||||
quickfix = {
|
||||
enabled = true, -- Enable Quickfix integration
|
||||
event_trigger = true, -- Trigger QuickFixCmdPost after populating Quickfix list
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
@ -25,6 +25,8 @@ return {
|
|||
},
|
||||
},
|
||||
|
||||
-- see below for full list of options 👇
|
||||
checkbox = {
|
||||
order = { ' ', 'x', '~', '!', '>' },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
'preservim/vim-pencil',
|
||||
init = function()
|
||||
vim.g['pencil#wrapModeDefault'] = 'soft'
|
||||
vim.g['pencil#conceallevel'] = 2
|
||||
end,
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
'unblevable/quick-scope',
|
||||
event = { 'VimEnter' }, -- Load plugin on VimEnter event
|
||||
config = function()
|
||||
-- Enable QuickScope highlighting
|
||||
vim.cmd [[
|
||||
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
|
||||
]]
|
||||
end,
|
||||
}
|
||||
|
|
@ -1,5 +1,43 @@
|
|||
return {
|
||||
'mrcjkb/rustaceanvim',
|
||||
version = '^5', -- Recommended
|
||||
version = '^6', -- Recommended
|
||||
lazy = false, -- This plugin is already lazy
|
||||
dependencies = { 'nvim-neotest/neotest' },
|
||||
config = function()
|
||||
vim.g.rustaceanvim = {
|
||||
server = {
|
||||
settings = {
|
||||
['rust-analyzer'] = {
|
||||
check = {
|
||||
command = 'clippy',
|
||||
extra_args = {
|
||||
'--',
|
||||
'-W',
|
||||
'clippy::pedantic',
|
||||
'-W',
|
||||
'clippy::unwrap_used',
|
||||
'-W',
|
||||
'clippy::expect_used',
|
||||
'-W',
|
||||
'clippy::panic',
|
||||
'-W',
|
||||
'clippy::exit',
|
||||
'-W',
|
||||
'clippy::todo',
|
||||
'-W',
|
||||
'clippy::unimplemented',
|
||||
'-W',
|
||||
'clippy::dbg_macro',
|
||||
'-A',
|
||||
'clippy::module_name_repetitions',
|
||||
},
|
||||
},
|
||||
rustfmt = {
|
||||
extraArgs = { '+nightly' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,10 +4,20 @@ return {
|
|||
cmd = 'Trouble',
|
||||
keys = {
|
||||
{
|
||||
'<leader>xx',
|
||||
'<leader>xd',
|
||||
'<cmd>Trouble diagnostics toggle<cr>',
|
||||
desc = 'Diagnostics (Trouble)',
|
||||
},
|
||||
{
|
||||
'<leader>xl',
|
||||
function()
|
||||
require('trouble').toggle {
|
||||
mode = 'diagnostics',
|
||||
win = { position = 'right', type = 'split', size = 75 },
|
||||
}
|
||||
end,
|
||||
desc = 'Toggle Trouble diagnostics sidebar',
|
||||
},
|
||||
{
|
||||
'<leader>xX',
|
||||
'<cmd>Trouble diagnostics toggle filter.buf=0<cr>',
|
||||
|
|
|
|||
Loading…
Reference in New Issue