add iron.nvim and tailwind-tools
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
@@ -18,7 +18,7 @@ return {
|
||||
config = function()
|
||||
require("copilot").setup({
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
enabled = false,
|
||||
auto_trigger = true,
|
||||
keymap = {
|
||||
accept = "<C-a>",
|
||||
|
||||
48
lua/dkelly/plugins/iron.lua
Normal file
48
lua/dkelly/plugins/iron.lua
Normal 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,
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
11
lua/dkelly/plugins/tailwind-tools.lua
Normal file
11
lua/dkelly/plugins/tailwind-tools.lua
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user