Skip to content

Commit fd44486

Browse files
committed
Guess this works
1 parent 0079504 commit fd44486

File tree

5 files changed

+65
-5
lines changed

5 files changed

+65
-5
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ require('lazy').setup({
12421242
--
12431243
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
12441244
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
1245-
-- { import = 'custom.plugins' },
1245+
{ import = 'custom.plugins' },
12461246
}, {
12471247
ui = {
12481248
-- If you are using a Nerd Font: set icons to an empty table which will use the

lua/custom/plugins/init.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
-- You can add your own plugins here or in other files in this directory!
2-
-- I promise not to create any merge conflicts in this directory :)
3-
--
4-
-- See the kickstart.nvim README for more information
51
return {}

lua/custom/plugins/neotest.lua

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
return {
2+
{
3+
'nvim-neotest/neotest',
4+
dependencies = {
5+
'nvim-neotest/nvim-nio',
6+
'nvim-lua/plenary.nvim',
7+
'antoinemadec/FixCursorHold.nvim',
8+
'nvim-treesitter/nvim-treesitter',
9+
'nvim-neotest/neotest-jest',
10+
},
11+
config = function()
12+
local neotest = require 'neotest'
13+
14+
neotest.setup {
15+
adapters = {
16+
require 'neotest-jest',
17+
},
18+
}
19+
20+
-- Set up keybindings
21+
local map = vim.keymap.set
22+
local opts = { noremap = true, silent = true }
23+
24+
map('n', '<leader>tt', function()
25+
neotest.run.run()
26+
end, opts) -- Run nearest test
27+
map('n', '<leader>tf', function()
28+
neotest.run.run(vim.fn.expand '%')
29+
end, opts) -- Run current file
30+
map('n', '<leader>td', function()
31+
neotest.run.run { strategy = 'dap' }
32+
end, opts) -- Run with debugger
33+
map('n', '<leader>to', function()
34+
neotest.output.open()
35+
end, opts)
36+
end,
37+
},
38+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
return {
2+
'luckasRanarison/tailwind-tools.nvim',
3+
name = 'tailwind-tools',
4+
build = ':UpdateRemotePlugins',
5+
dependencies = {
6+
'nvim-treesitter/nvim-treesitter',
7+
'nvim-telescope/telescope.nvim', -- optional
8+
'neovim/nvim-lspconfig', -- optional
9+
},
10+
opts = {}, -- your configuration
11+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
return {
2+
'MaximilianLloyd/tw-values.nvim',
3+
keys = {
4+
{ '<leader>sv', '<cmd>TWValues<cr>', desc = 'Show tailwind CSS values' },
5+
},
6+
opts = {
7+
border = 'rounded', -- Valid window border style,
8+
show_unknown_classes = true, -- Shows the unknown classes popup
9+
focus_preview = true, -- Sets the preview as the current window
10+
copy_register = '', -- The register to copy values to,
11+
keymaps = {
12+
copy = '<C-y>', -- Normal mode keymap to copy the CSS values between {}
13+
},
14+
},
15+
}

0 commit comments

Comments
 (0)