Comments (5)
I just test the setting and it works fine. Maybe can need to figure out what is your problem. The textobj and the ]x command just works fine. I guess you may miss the lua config of iron.nvim, you need use that config instead of the default config. Or you can change the mapping of ]x.
from iron.nvim.
Hi Meicale,
Thanks for your feedback. I tried changing the mapping and it didn't help and this is my iron config, anything am I missing?
local iron = require("iron.core")
vim.g.mapleader = ";"
iron.setup {
config = {
-- Whether a repl should be discarded or not
scratch_repl = true,
-- Your repl definitions come here
repl_definition = {
sh = {
-- Can be a table or a function that
-- returns a table (see below)
command = {"bash"}
}
},
-- How the repl window will be displayed
-- See below for more information
repl_open_cmd = require("iron.view").split.vertical(100)
},
-- Iron doesn't set keymaps by default anymore.
-- You can set them here or manually add keymaps to the functions in iron.core
keymaps = {
send_motion = "<leader>j",
visual_send = "<leader>v",
send_file = "<leader>f",
send_line = "<leader>l",
send_mark = "<leader>k",
mark_motion = "<leader>mc",
mark_visual = "<leader>mc",
remove_mark = "<leader>md",
cr = "<leader>s<cr>",
-- interrupt = "<leader>s<leader>",
-- exit = "<leader>q",
-- clear = "<leader>c",
},
-- If the highlight is on, you can change how it looks
-- For the available options, check nvim_set_hl
highlight = {
italic = true
},
ignore_blank_lines = true, -- ignore blank lines when sending visual select lines
}
-- iron also has a list of commands, see :h iron-commands for all available commands
vim.keymap.set('n', '<leader>T', '<cmd>IronRepl<cr>')
vim.keymap.set('n', '<leader>R', '<cmd>IronRestart<cr>')
vim.keymap.set('n', '<leader>F', '<cmd>IronFocus<cr>')
vim.keymap.set('n', '<leader>H', '<cmd>IronHide<cr>')
vim.g.mapleader = "\\"
from iron.nvim.
Hi Meicale, Thanks for your feedback. I tried changing the mapping and it didn't help and this is my iron config, anything am I missing?
local iron = require("iron.core") vim.g.mapleader = ";" iron.setup { config = { -- Whether a repl should be discarded or not scratch_repl = true, -- Your repl definitions come here repl_definition = { sh = { -- Can be a table or a function that -- returns a table (see below)
command = {"bash"}
} },
I think you use this to run python code, so that you need using command = {"ipython"} and install ipython in your machine. I recommend that you just double check the blog related to your config.
from iron.nvim.
I implemented my own function to send code chunk to REPL and it works fine.
from iron.nvim.
Related Issues (20)
- How to go back to normal mode in REPL window HOT 3
- Opening Julia REPL with multithread/multiprocess option fails HOT 2
- Vim Iron Opens Full Window HOT 2
- Keymaps cause a slew of errors with which-key HOT 3
- How to limit scrollback? HOT 1
- Splits not working as expected HOT 3
- Cannot quit after attaching buffer to arbitrary REPL language
- FT specific work dir settings HOT 4
- Use your current python virtual env or conda env in IronRepl HOT 4
- REPL only persists if I open file from same directory
- Can't change repl for scheme/racket
- question: only print output
- feature request: set `filetype` for REPL buffer
- Question: How can I UnFocus HOT 1
- Sending splits statements HOT 2
- The image provider set to kitty
- sometimes motion code can't be sent to repl with error message when quitting nvim HOT 1
- Delete my company email address from commit HOT 1
- [Feature Request] Send a valid Treesitter node to REPL HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iron.nvim.