Comments (8)
I am getting this same error with this setup
`require('FTerm').setup({})
vim.api.nvim_create_user_command('FTermOpen', require('FTerm').open, { bang = true })
vim.api.nvim_create_user_command('FTermClose', require('FTerm').close, { bang = true })`
When I run :FTermOpen, I get the same error as above, and a blank floating window.
I have the latest version with the commit above.
Update: I actually just resolved this.
Had to change the setup step to
require('FTerm').setup({cmd = 'cmd.exe'})
from fterm.nvim.
What's your fterm config?
from fterm.nvim.
This is it right now for testing et al.
require'FTerm'.setup({
-- Command to run inside the terminal. It could be a `string` or `table`
-- cmd = os.getenv('pwsh'),
-- Neovim's native window border. See `:h nvim_open_win` for more configuration options.
border = 'rounded',
-- Close the terminal as soon as shell/command exits.
-- Disabling this will mimic the native terminal behaviour.
auto_close = true,
-- Highlight group for the terminal. See `:h winhl`
hl = 'Normal',
-- Transparency of the floating window. See `:h winblend`
blend = 0,
-- Object containing the terminal window dimensions.
-- The value for each field should be between `0` and `1`
dimensions = {
height = 0.9, -- Height of the terminal window
width = 0.9, -- Width of the terminal window
x = 0.5, -- X axis of the terminal window
y = 0.5, -- Y axis of the terminal window
}
})
-- -- Example keybindings
local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
map('n', '<A-g>', "<CMD>lua require('FTerm').run('lazygit')<CR>", opts)
vim.cmd('command! FTermOpen lua require("FTerm").open()')
vim.cmd('command! FTermClose lua require("FTerm").close()')
vim.cmd('command! FTermExit lua require("FTerm").exit()')
vim.cmd('command! FTermToggle lua require("FTerm").toggle()')
from fterm.nvim.
Config looks fine to me. IDK what's the issue then as this doesn't happen on Linux. And I don't have access to any windows machine so I won't be able to fix this issue. If you can fix it that will be great and I'll be happy to assist you :)
from fterm.nvim.
I'm facing this issue on windows too.
from fterm.nvim.
@atulpatildbz If you are able to fix the issue that would be much appreciated.
from fterm.nvim.
@kishikaisei @atulpatildbz Does c2a4c4b solve the issue?
from fterm.nvim.
Had to change the setup step to
require('FTerm').setup({cmd = 'cmd.exe'})
I guess that must be the issue. The default value of cmd
is os.getenv('SHELL')
and I am not sure whether this is available or not on windows.
I am closing this for now. If anyone else having this issue please try to update cmd
option in setup()
.
from fterm.nvim.
Related Issues (20)
- Respect vim.o.shell HOT 2
- How to use the same python venv that was set in shell HOT 1
- bug: Not working properly on warp terminal
- Question: does this plugin add the toggle action for the `<TAB>` key? HOT 1
- Terminal output shifted left after opening an existing FTerm instance HOT 2
- How to run statically-typed language by scratch terminal (Such as c/cpp/java) HOT 1
- Feat: make col and row options for position depend on vim.o.col and vim.o.row
- Can't background an FTerm terminal running `k9s`
- [feature] Option to set starting path HOT 1
- Trigger FocusGained after closing the terminal window HOT 1
- Redirect nvim call inside fterm to outter nvim
- Pressing backspace while holding shift doesn't delete a character
- Avoid linter complaints from missing fields in setup table HOT 2
- Floating help buffers HOT 3
- [RFE] Customise the background HOT 1
- Use of FTermToggle HOT 4
- Why the FTerm not load my fish configuration? HOT 2
- I have two opened fterm windows, how to auto close the second fterm window when the first fterm window opened? HOT 1
- Automatic CWD on every enter.
- bug: cannot click on opened terminal on neovide
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 fterm.nvim.