Compare commits
1 Commits
4c1f2bad76
...
da099ffddc
Author | SHA1 | Date | |
---|---|---|---|
|
da099ffddc |
13
Dockerfile
13
Dockerfile
@ -174,16 +174,3 @@ RUN ${XDG_DATA_HOME}/rtx/bin/rtx plugins install \
|
|||||||
kubectl \
|
kubectl \
|
||||||
poetry \
|
poetry \
|
||||||
terraform
|
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
|
|
||||||
|
@ -69,46 +69,27 @@ return {
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
'nvim-treesitter/nvim-treesitter-context',
|
|
||||||
{
|
{
|
||||||
'akinsho/toggleterm.nvim',
|
'Vigemus/iron.nvim',
|
||||||
opts = {
|
config = function ()
|
||||||
size = vim.o.lines * 0.3,
|
local iron = require('iron.core')
|
||||||
open_mapping = [[<c-\>]],
|
iron.setup({
|
||||||
hide_numbers = true,
|
config = {
|
||||||
shade_filetypes = { },
|
scratch_repl = true,
|
||||||
shade_terminals = true,
|
repl_definition = {
|
||||||
shading_factor = 2,
|
sh = {
|
||||||
direction = 'horizontal',
|
command = { 'fish' }
|
||||||
shell = vim.o.shell,
|
},
|
||||||
},
|
elixir = require('iron.fts.elixir').iex,
|
||||||
keys = function ()
|
javascript = require('iron.fts.javascript').node,
|
||||||
local status_ok, which_key = pcall(require, 'which_key')
|
python = require('iron.fts.python').ipython,
|
||||||
if status_ok then
|
typescript = require('iron.fts.typescript').ts
|
||||||
which_key.register({
|
}
|
||||||
['<leader>o'] = { name = 'To[g]gle terminal', _ = 'which_key_ignore' }
|
},
|
||||||
})
|
highlight = { italic = true },
|
||||||
end
|
ignore_blank_lines = true
|
||||||
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
|
end
|
||||||
}
|
},
|
||||||
|
'nvim-treesitter/nvim-treesitter-context'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user