Compare commits

..

3 Commits

Author SHA1 Message Date
b36bfb3085 chore: git config is the last step of image 2023-11-14 01:52:51 +00:00
12c4eedc84 feat: add jetporch to provision machines 2023-11-14 01:47:00 +00:00
Joao P Dubas
04a8637f07 wip: add rust toolchain 2023-11-14 01:47:00 +00:00
4 changed files with 20 additions and 28 deletions

View File

@ -151,7 +151,7 @@ COPY ./patch/kickstart.nvim/updates.patch /tmp
COPY ./config/nvim/lua/custom/plugins/init.lua /tmp
RUN git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME}"/nvim \
&& cd ${XDG_CONFIG_HOME}/nvim \
&& git reset --hard 1915cea32e13fcb4191904de8f5e0252ad050a6e \
&& git reset --hard a005f15cec8072c97201f86e15df62c7e4a4490e \
&& git apply /tmp/updates.patch \
&& cp /tmp/init.lua ${XDG_CONFIG_HOME}/nvim/lua/custom/plugins \
&& nvim --headless "+Lazy! sync" +qa
@ -161,10 +161,9 @@ RUN fish -c true \
&& echo 'starship init fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo '{$XDG_DATA_HOME}/rtx/bin/rtx activate fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'zoxide init fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias cat="bat"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias l="exa --time-style long-iso --color=auto -F"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias ll="l -Fahl"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
&& echo 'alias la="l -a"' >> ${XDG_CONFIG_HOME}/fish/config.fish
&& echo 'eval "$(starship init bash)"' >> ${HOME}/.bashrc \
&& echo 'eval "$(${XDG_DATA_HOME}/rtx/bin/rtx activate bash)"' >> ${HOME}/.bashrc \
&& echo 'eval "$(zoxide init bash)"' >> ${HOME}/.bashrc
# install rtx plugins
RUN ${XDG_DATA_HOME}/rtx/bin/rtx plugins install \
@ -175,8 +174,7 @@ RUN ${XDG_DATA_HOME}/rtx/bin/rtx plugins install \
kubectl \
lefthook \
poetry \
terraform \
tilt
terraform
# NOTE (jpd): the section below exists mainly to handle a project running elixir 1.11.
# It allows the usage of openssl 1.1 and a compatible elixir-ls.

View File

@ -73,7 +73,7 @@ return {
{
'akinsho/toggleterm.nvim',
opts = {
size = vim.o.lines * 0.75,
size = vim.o.lines * 0.3,
open_mapping = [[<c-\>]],
hide_numbers = true,
shade_filetypes = { },
@ -104,8 +104,7 @@ return {
end
})
return {
{ '<leader>mh', '<cmd>ToggleTerm direction=horizontal size=' .. tostring(vim.o.lines * 0.75) .. '<cr>', desc = 'Open ter[m]inal [h]orizontally', noremap = true },
{ '<leader>mv', '<cmd>ToggleTerm direction=vertical size=' .. tostring(vim.o.columns * 0.5) .. '<cr>', desc = 'Open ter[m]inal [v]ertically', noremap = true },
{ '<leader>mh', '<cmd>ToggleTerm direction=horizontal size=' .. tostring(vim.o.lines * 0.4) .. '<cr>', desc = 'Open ter[m]inal [h]orizontally', noremap = true },
{ '<leader>mc', '<cmd>ToggleTermSendCurrentLine<cr>', desc = 'Send [c]urrent line under the cursor', noremap = true }
}
end

View File

@ -1,16 +1,15 @@
[tools]
awscli = "2.13.38"
awscli = "2.13.30"
elixir = "1.15.7-otp-26"
erlang = "26.1.2"
go = "1.21.4"
helm = "3.13.2"
kubectl = "1.28.4"
lefthook = "1.5.3"
node = "21.2.0"
poetry = "1.7.1"
go = "1.21.3"
helm = "3.13.1"
kubectl = "1.27.7"
lefthook = "1.5.2"
node = "21.1.0"
poetry = "1.6.1"
python = "3.12.0"
terraform = "1.6.4"
tilt = "0.33.6"
terraform = "1.6.2"
[settings]
experimental = true

View File

@ -1,5 +1,5 @@
diff --git a/init.lua b/init.lua
index 3a98da0..e8e41b4 100644
index 748e7f8145427b7f17639d4c9f978b9bbe47d2c9..7d05ed25928e7526b02da1671068cdaa24ebc240 100644
--- a/init.lua
+++ b/init.lua
@@ -229,7 +229,7 @@ require('lazy').setup({
@ -42,7 +42,7 @@ index 3a98da0..e8e41b4 100644
-- [[ Basic Keymaps ]]
-- Keymaps for better default experience
@@ -378,11 +387,33 @@ vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc =
@@ -378,11 +387,29 @@ vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc =
vim.defer_fn(function()
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
@ -54,7 +54,6 @@ index 3a98da0..e8e41b4 100644
+ 'eex',
+ 'elixir',
+ 'erlang',
+ 'gitcommit',
+ 'go',
+ 'heex',
+ 'html',
@ -63,15 +62,12 @@ index 3a98da0..e8e41b4 100644
+ 'json',
+ 'lua',
+ 'markdown',
+ 'markdown_inline',
+ 'python',
+ 'sql',
+ 'toml',
+ 'tsx',
+ 'typescript',
+ 'vim',
+ 'vimdoc',
+ 'yaml'
+ 'vimdoc'
+ },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
@ -79,7 +75,7 @@ index 3a98da0..e8e41b4 100644
highlight = { enable = true },
indent = { enable = true },
incremental_selection = {
@@ -511,19 +542,24 @@ require('mason-lspconfig').setup()
@@ -511,19 +538,24 @@ require('mason-lspconfig').setup()
-- If you want to override the default filetypes that your language server will attach to you can
-- define the property 'filetypes' to the map in question.
local servers = {
@ -111,7 +107,7 @@ index 3a98da0..e8e41b4 100644
}
-- Setup neovim lua configuration
@@ -542,12 +578,20 @@ mason_lspconfig.setup {
@@ -542,12 +574,20 @@ mason_lspconfig.setup {
mason_lspconfig.setup_handlers {
function(server_name)