mirror of
https://github.com/tomru/vim.git
synced 2026-03-03 14:37:20 +01:00
50 lines
1.2 KiB
Lua
50 lines
1.2 KiB
Lua
return {
|
|
'vim-utils/vim-troll-stopper',
|
|
{ 'tpope/vim-abolish', lazy = false },
|
|
{ 'tpope/vim-unimpaired', lazy = false },
|
|
{
|
|
'kylechui/nvim-surround',
|
|
version = '*',
|
|
event = 'VeryLazy',
|
|
config = function()
|
|
require('nvim-surround').setup {
|
|
-- Configuration here, or leave empty to use defaults
|
|
}
|
|
end,
|
|
},
|
|
{
|
|
'rcarriga/nvim-notify',
|
|
lazy = false,
|
|
config = function()
|
|
local notify = require 'notify'
|
|
notify.setup()
|
|
vim.notify = notify
|
|
end,
|
|
},
|
|
|
|
-- rust
|
|
{ 'simrat39/rust-tools.nvim', opts = {} },
|
|
{
|
|
'saecki/crates.nvim',
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
opts = {},
|
|
},
|
|
|
|
-- testing
|
|
{
|
|
'vim-test/vim-test',
|
|
ft = { 'javascript', 'typescript', 'javascriptreact' },
|
|
config = function()
|
|
vim.cmd [[
|
|
let test#strategy = 'neovim'
|
|
let test#javascript#jest#file_pattern = '\v(__tests__/.*|([sS]pec|tests?))\.(js|jsx|coffee|ts|tsx)$'
|
|
]]
|
|
end,
|
|
keys = {
|
|
{ '<leader>tn', '<cmd>TestNearest<cr>', desc = '[T]est [N]earest' },
|
|
{ '<leader>tf', '<cmd>TestFile<cr>', desc = '[T]est [F]ile' },
|
|
{ '<leader>tt', '<cmd>TestLast<cr>', desc = '[T]est Last' },
|
|
},
|
|
},
|
|
}
|