Fork me on GitHub
#practicalli
<
2024-06-14
>
practicalli-johnny13:06:41

@dvorme Using the vim-jack-in plugin to start a REPL seems to put Neovim into a Terminal buffer. The buffer should show as Terminal at the bottom bar. C-\ C-n to leave Terminal console mode, then gT or gt should take you to the source code tab (moving backward or forward through the tab pages). Would be useful to add a key mapping for escaping terminal mode, e.g create an Esc key binding that could be used instead so that other key sequence isnt reqiured. I'll see if I can think of an example key mapping...

👍 1
practicalli-johnny22:06:09

I've added a lua/plugins/termux.lua configuration with some overrides, especially using locally installed Clojure and Lua LSP servers on Termux, rather than mason installed servers that fail on Termux (Android Linux). Also Neovim 0.10.0 has not yet been released for Termux, so Neogit is pinned to v0.0.1 using the lazy tag keyword. A https://github.com/practicalli/astronvim-user-config/blob/main/lua/plugins/termux.lua#L9-L10, OS_TERMUX is used to determine if the termux.lua file should load. If OS_TERMUX is set to true in the shell environment (.bashrc or .zshenv) then the termux config will load, otherwise that file returns an empty table, {}

-- INFO: conditional to only load config ig running on Termux
local termux = vim.env.OS_TERMUX
if not termux then return {} end
I am considering using a PRACTICALLI_ASTRO environment variable as a conditional load of the lua/plugins/practicalli.lua configuration, that contains all the Practicalli preferences (e.g. hiding the Conjure HUD). This approach would make it even easier to build your own preferences on top of the Practicalli Astro configuration without any merge conflicts (although currently it would be only one line in Practicalli when the if statement is not commented.