Compare commits

..

3 Commits

Author SHA1 Message Date
Joao P Dubas
4c1f2bad76 chore(rtx): upgrade runtimes
* awscli .... from 2.13.5 to 2.13.30
* elixir .... from 1.15.6 to 1.15.7
* erlang .... from 26.1.1 to 26.1.2
* go ........ from 1.20.6 to 1.21.3
* helm ...... from 3.12.2 to 3.13.1
* kubectl ... from 1.27.4 to 1.27.7
* node ...... from 20.6.1 to 21.1.0
* poetry .... from 1.5.1 to 1.6.1
* python .... from 3.11.4 to 3.12.0
* terraform . from 1.5.4 to 1.6.2
2023-10-29 20:46:24 +00:00
093c3dc49f chore(neovim): move from iron.nvim to toggleterm (#8)
I use the terminal to access `repl` available in a `docker container`, or a remote one available in `kubernetes` or virtual machine.

Reviewed-on: #8
2023-10-29 20:46:14 +00:00
e9d47a7fcd chore: add openssl 1.1 shared lib (#7)
This version of `openssl` is needed to compile older versions of `erlang`.

Reviewed-on: #7
2023-10-29 20:45:20 +00:00
2 changed files with 52 additions and 20 deletions

View File

@ -174,3 +174,16 @@ RUN ${XDG_DATA_HOME}/rtx/bin/rtx plugins install \
kubectl \
poetry \
terraform
# configure openssl 1.1
# this is needed to compile older erlang versions
# example: KERL_CONFIGURE_OPTIONS="-with-ssl=${HOME}/.local/lib/ssl" asdf install
RUN mkdir -p ${HOME}/.local/src \
&& cd ${HOME}/.local/src \
&& wget https://www.openssl.org/source/openssl-1.1.1m.tar.gz \
&& tar -xzf openssl-1.1.1m.tar.gz \
&& cd openssl-1.1.1m \
&& ./config --prefix=${HOME}/.local/lib/ssl --openssldir=${HOME}/.local/lib/ssl shared zlib \
&& make \
# && make test \
&& make install

View File

@ -69,27 +69,46 @@ return {
}
end
},
'nvim-treesitter/nvim-treesitter-context',
{
'Vigemus/iron.nvim',
config = function ()
local iron = require('iron.core')
iron.setup({
config = {
scratch_repl = true,
repl_definition = {
sh = {
command = { 'fish' }
},
elixir = require('iron.fts.elixir').iex,
javascript = require('iron.fts.javascript').node,
python = require('iron.fts.python').ipython,
typescript = require('iron.fts.typescript').ts
}
},
highlight = { italic = true },
ignore_blank_lines = true
'akinsho/toggleterm.nvim',
opts = {
size = vim.o.lines * 0.3,
open_mapping = [[<c-\>]],
hide_numbers = true,
shade_filetypes = { },
shade_terminals = true,
shading_factor = 2,
direction = 'horizontal',
shell = vim.o.shell,
},
keys = function ()
local status_ok, which_key = pcall(require, 'which_key')
if status_ok then
which_key.register({
['<leader>o'] = { name = 'To[g]gle terminal', _ = 'which_key_ignore' }
})
end
vim.api.nvim_create_autocmd('TermOpen', {
group = vim.api.nvim_create_augroup('kickstart-custom-term-open-mapping', { clear = true }),
callback = function (args)
local bufnr = args.buf
local opts = { buffer = bufnr }
vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts)
vim.keymap.set('t', 'jk', [[<C-\><C-n>]], opts)
vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts)
vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts)
vim.keymap.set('t', '<C-k>', [[<Cmd>wincmd k<CR>]], opts)
vim.keymap.set('t', '<C-l>', [[<Cmd>wincmd l<CR>]], opts)
vim.keymap.set('t', '<C-w>', [[<C-\><C-n><C-w>]], opts)
end
})
return {
{ '<leader>oh', '<cmd>ToggleTerm direction=horizontal size=' .. tostring(vim.o.lines * 0.3) .. '<cr>', desc = 'Open terminal horizontally' },
{ '<leader>oc', '<cmd>ToggleTermSendCurrentLine<cr>', desc = 'Send current line under the cursor' },
{ '<leader>ov', '<cmd>ToggleTermSendVisualLines<cr>', desc = 'Send all lines visually selected' },
{ '<leader>os', '<cmd>ToggleTermSendVisualSelection<cr>', desc = 'Send visually selected text' }
}
end
},
'nvim-treesitter/nvim-treesitter-context'
}
}