add iron.nvim and tailwind-tools

This commit is contained in:
2025-06-02 20:35:39 -05:00
parent dadd13a702
commit 35c1889ead
6 changed files with 87 additions and 21 deletions

View File

@@ -97,7 +97,11 @@ return {
"linux-cultist/venv-selector.nvim",
dependencies = {
"neovim/nvim-lspconfig",
{ "nvim-telescope/telescope.nvim", branch = "0.1.x", dependencies = { "nvim-lua/plenary.nvim" } },
{
"nvim-telescope/telescope.nvim",
branch = "0.1.x",
dependencies = { "nvim-lua/plenary.nvim" },
},
"mfussenegger/nvim-dap-python", -- tiny wrapper that registers the debugpy adapter
"mfussenegger/nvim-dap",
},

View File

@@ -18,7 +18,7 @@ return {
config = function()
require("copilot").setup({
suggestion = {
enabled = true,
enabled = false,
auto_trigger = true,
keymap = {
accept = "<C-a>",

View File

@@ -0,0 +1,48 @@
-- lua/plugins/iron.lua
return {
"Vigemus/iron.nvim",
config = function()
local iron = require("iron.core")
-- Initial REPL config with selected venv
iron.setup({
config = {
repl_definition = {
python = {
command = { "python" },
},
},
repl_open_cmd = require("iron.view").split.vertical.botright(0.4),
},
keymaps = {
send_motion = "<space>sc",
visual_send = "<space>sc",
send_file = "<space>sf",
send_line = "<space>sl",
send_mark = "<space>sm",
mark_motion = "<space>mc",
mark_visual = "<space>mc",
remove_mark = "<space>md",
cr = "<space>s<cr>",
interrupt = "<space>s<space>",
exit = "<space>sq",
clear = "<space>cl",
},
highlight = {
italic = true,
},
ignore_blank_lines = true,
})
-- Auto-update REPL definition when venv changes
vim.api.nvim_create_autocmd("User", {
pattern = "VenvSelect",
callback = function()
local new_python = get_python_path()
require("iron.core").config.repl_definition.python = {
command = { new_python },
}
vim.notify("Iron REPL updated to use: " .. new_python, vim.log.levels.INFO)
end,
})
end,
}

View File

@@ -136,9 +136,10 @@ return {
["gopls"] = function()
lspconfig.gopls.setup({
cmd = { "gopls" },
filetypes = { "go", "gomod", "gowork", "gotmpl" },
filetypes = { "go", "gomod", "gowork", "gotmpl", "gohtml" },
settings = {
gopls = {
templateExtensions = { "gotmpl", "gohtml" },
staticcheck = true,
completeUnimported = true,
usePlaceholder = true,

View File

@@ -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
}