diff --git a/init.lua b/init.lua index 4369f3af..145e1988 100644 --- a/init.lua +++ b/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. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..a5647075 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -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 {} diff --git a/lua/custom/plugins/neotest.lua b/lua/custom/plugins/neotest.lua new file mode 100644 index 00000000..fe890183 --- /dev/null +++ b/lua/custom/plugins/neotest.lua @@ -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', 'tt', function() + neotest.run.run() + end, opts) -- Run nearest test + map('n', 'tf', function() + neotest.run.run(vim.fn.expand '%') + end, opts) -- Run current file + map('n', 'td', function() + neotest.run.run { strategy = 'dap' } + end, opts) -- Run with debugger + map('n', 'to', function() + neotest.output.open() + end, opts) + end, + }, +} diff --git a/lua/custom/plugins/tailwind-tools.lua b/lua/custom/plugins/tailwind-tools.lua new file mode 100644 index 00000000..09fdb431 --- /dev/null +++ b/lua/custom/plugins/tailwind-tools.lua @@ -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 +} diff --git a/lua/custom/plugins/tailwind-values.lua b/lua/custom/plugins/tailwind-values.lua new file mode 100644 index 00000000..23314fa5 --- /dev/null +++ b/lua/custom/plugins/tailwind-values.lua @@ -0,0 +1,15 @@ +return { + 'MaximilianLloyd/tw-values.nvim', + keys = { + { 'sv', 'TWValues', 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 = '', -- Normal mode keymap to copy the CSS values between {} + }, + }, +}