diff options
author | Jackson Taylor <jtaylor@classicalconversations.com> | 2024-01-30 19:55:35 -0500 |
---|---|---|
committer | Jackson Taylor <jtaylor@classicalconversations.com> | 2024-01-30 19:55:35 -0500 |
commit | 1351aba4013a569c288c8d0bf30bf77c27cca578 (patch) | |
tree | ad914b545969667c1f55516f01ee40b4ae427a3e | |
parent | 533dc61091eeede63d32cef3408ffa79712880bd (diff) |
plugins: Install neotest
I hope to get this working well enough where I can run tests from within
neovim
-rw-r--r-- | lua/jacksontaylorxyz/packer.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/jacksontaylorxyz/packer.lua b/lua/jacksontaylorxyz/packer.lua index ca25675..8cde1ec 100644 --- a/lua/jacksontaylorxyz/packer.lua +++ b/lua/jacksontaylorxyz/packer.lua @@ -119,6 +119,26 @@ return require('packer').startup(function(use) } use {'fatih/vim-go', run = ':GoUpdateBinaries' } -- Nice Golang plugin use 'buoto/gotests-vim' -- Better Golang Testing (generates tests for you) + use({ -- Test runner (WIP) + 'nvim-neotest/neotest', + requires = { + 'nvim-neotest/neotest-jest', + }, + config = function() + require('neotest').setup({ + adapters = { + require('neotest-jest')({ + jestCommand = "npm test --", + jestConfigFile = "custom.jest.config.ts", + env = { CI = true }, + cwd = function(path) + return vim.fn.getcwd() + end, + }), + } + }) + end + }) -- Fun things use 'eandrju/cellular-automaton.nvim' -- Animations on your code |