Open BAD-WOLF opened 1 day ago
Open the integrated terminal using :term.
that isnt nvchad's term at all .. Nvchad one has nvchad.term module
Thanks for the response! However, the issue seems to be related to NVChad itself, not just the terminal. To clarify, I have the following configuration in my init.lua
file:
{
"mtoohey31/cmp-fish",
ft = "fish", -- Load the plugin only for .fish files
dependencies = { "hrsh7th/nvim-cmp" }, -- Ensure cmp is available
config = function()
local cmp = require('cmp')
cmp.setup({
sources = cmp.config.sources({
{ name = 'fish' }
})
})
end
},
However, when trying to use the cmp-fish
plugin, I am getting the following error:
Error detected while processing TextChangedI Autocommands for "*":
Error executing lua callback: Vim:E475: Invalid value for argument cmd: 'fish' is not executable
I also tried specifying the path to fish
manually with the configuration below:
{ name = 'fish', option = { fish_path = "/usr/bin/fish" } }
But I still get the same error:
Error detected while processing TextChangedI Autocommands for "*":
Error executing lua callback: Vim:E475: Invalid value for argument cmd: '/usr/bin/fish' is not executable
What's strange is that the error also occurs directly in the terminal, as I showed in the video above. So it doesn't seem to be an issue with an additional plugin that I am trying to integrate, but rather with NVChad itself or how it is handling commands and the terminal.
Additional steps to reproduce:
cmp-fish
plugin.fish
as the default shell in the integrated terminal.Any further guidance would be greatly appreciated, as this issue affects the functionality of the terminal and the shell within NVChad.
those errors dont look nvchad related at all :/
please try your config on a saner OS, like linux
https://github.com/user-attachments/assets/fa0e5e3e-4f81-487f-8c5e-e97ee8a7edfd
I'm experiencing an issue with the integrated terminal in NVChad. When I open the terminal using
:term
, it seems to be running an extremely minimal shell. Commands likenodejs
,php
, andapt
are not recognized, and I can only use basic commands likecd
,ls
, and other default system commands. It appears that the terminal is defaulting tosh
instead of using my preferred shell (fish
).I have
fish-shell
set as my default shell, but NVChad's integrated terminal doesn't seem to recognize this and always loadssh
by default. When I manually runfish
, it works, but this behavior shouldn't be happening.Steps to reproduce:
:term
.nodejs
,php
, orapt
.Expected behavior: The terminal should recognize
fish-shell
as the default shell and allow me to run commands likenodejs
,php
,apt
, etc.Environment:
fish-shell
Any help or guidance would be appreciated!