Guess this works
This commit is contained in:
parent
0079504a48
commit
fd44486cc7
2
init.lua
2
init.lua
|
@ -1242,7 +1242,7 @@ require('lazy').setup({
|
||||||
--
|
--
|
||||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||||
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
||||||
-- { import = 'custom.plugins' },
|
{ import = 'custom.plugins' },
|
||||||
}, {
|
}, {
|
||||||
ui = {
|
ui = {
|
||||||
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
-- You can add your own plugins here or in other files in this directory!
|
|
||||||
-- I promise not to create any merge conflicts in this directory :)
|
|
||||||
--
|
|
||||||
-- See the kickstart.nvim README for more information
|
|
||||||
return {}
|
return {}
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
'nvim-neotest/neotest',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-neotest/nvim-nio',
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'antoinemadec/FixCursorHold.nvim',
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
'nvim-neotest/neotest-jest',
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
local neotest = require 'neotest'
|
||||||
|
|
||||||
|
neotest.setup {
|
||||||
|
adapters = {
|
||||||
|
require 'neotest-jest',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Set up keybindings
|
||||||
|
local map = vim.keymap.set
|
||||||
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
|
map('n', '<leader>tt', function()
|
||||||
|
neotest.run.run()
|
||||||
|
end, opts) -- Run nearest test
|
||||||
|
map('n', '<leader>tf', function()
|
||||||
|
neotest.run.run(vim.fn.expand '%')
|
||||||
|
end, opts) -- Run current file
|
||||||
|
map('n', '<leader>td', function()
|
||||||
|
neotest.run.run { strategy = 'dap' }
|
||||||
|
end, opts) -- Run with debugger
|
||||||
|
map('n', '<leader>to', function()
|
||||||
|
neotest.output.open()
|
||||||
|
end, opts)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
return {
|
||||||
|
'luckasRanarison/tailwind-tools.nvim',
|
||||||
|
name = 'tailwind-tools',
|
||||||
|
build = ':UpdateRemotePlugins',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
'nvim-telescope/telescope.nvim', -- optional
|
||||||
|
'neovim/nvim-lspconfig', -- optional
|
||||||
|
},
|
||||||
|
opts = {}, -- your configuration
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
return {
|
||||||
|
'MaximilianLloyd/tw-values.nvim',
|
||||||
|
keys = {
|
||||||
|
{ '<leader>sv', '<cmd>TWValues<cr>', desc = 'Show tailwind CSS values' },
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
border = 'rounded', -- Valid window border style,
|
||||||
|
show_unknown_classes = true, -- Shows the unknown classes popup
|
||||||
|
focus_preview = true, -- Sets the preview as the current window
|
||||||
|
copy_register = '', -- The register to copy values to,
|
||||||
|
keymaps = {
|
||||||
|
copy = '<C-y>', -- Normal mode keymap to copy the CSS values between {}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue