Merge branch 'main' of codeberg.org:aleidk/dots

This commit is contained in:
Alexander Navarro 2023-06-11 19:05:08 -04:00
commit ec519c127f
7 changed files with 51 additions and 36 deletions

9
README.md Normal file
View file

@ -0,0 +1,9 @@
# Personal Dotfiles :3
## Installation
Execute the following command:
```bash
curl -L https://codeberg.org/aleidk/dots/raw/branch/main/setup.sh | bash
```

View file

@ -1,5 +1,9 @@
-- [[ Basic Keymaps ]]
function MAP(mode, l, r, desc)
vim.keymap.set(mode, l, r, { desc = desc, silent = true })
end
local function default(desc)
return {
silent = true,

View file

@ -19,7 +19,7 @@ return {
},
},
config = function()
opts = {
local opts = {
highlights = { separator = { bg = "NONE" } },
options = {
-- FIXME: Doesn't work with onedark pro colorscheme

View file

@ -56,4 +56,12 @@ return {
},
},
},
{
"RRethy/vim-illuminate",
event = { "BufReadPost", "BufNewFile" },
opts = { delay = 200 },
config = function(_, opts)
require("illuminate").configure(opts)
end,
},
}

View file

@ -1,32 +1,16 @@
return {
"folke/trouble.nvim",
-- dependencies = { "kyazdani42/nvim-web-devicons" },
cmd = { "TroubleToggle", "Trouble" },
config = function()
require("trouble").setup({
mode = "document_diagnostics",
action_keys = { -- key mappings for actions in the trouble list
-- map to {} to remove a mapping, for example:
-- close = {},
close = "q", -- close the list
cancel = "<esc>", -- cancel the preview and get back to your last window / buffer / cursor
refresh = "r", -- manually refresh
jump = { "<cr>", "<tab>" }, -- jump to the diagnostic or open / close folds
open_split = { "s" }, -- open buffer in new split
open_vsplit = { "v" }, -- open buffer in new vsplit
open_tab = { "t" }, -- open buffer in new tab
jump_close = { "o" }, -- jump to the diagnostic and close the list
toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode
toggle_preview = "P", -- toggle auto_preview
hover = "K", -- opens a small popup with the full multiline message
preview = "p", -- preview the diagnostic location
close_folds = { "zM", "zm" }, -- close all folds
open_folds = { "zR", "zr" }, -- open all folds
toggle_fold = { "zA", "za" }, -- toggle fold of current file
previous = "k", -- previous item
next = "j", -- next item
action_keys = {
open_split = "s",
open_vsplit = "v",
open_tab = "t",
},
})
vim.keymap.set("n", "<leader>fd", "<cmd>TroubleToggle<cr>", { silent = true, desc = "Search diagnostics" })
MAP("n", "<leader>fd", "<cmd>TroubleToggle<cr>", { silent = true, desc = "Search diagnostics" })
end,
}

View file

@ -5,10 +5,19 @@ dnf-save-install() {
sudo dnf install -y $(cat "$DOTS/exports/dnf.txt")
}
dnf-load-export() {
while read -r line; do
sudo dnf copr enable -y "$line"
done <"$DOTS/exports/copr.txt"
sudo dnf install -y $(cat "$DOTS/exports/dnf.txt")
}
upgrade() {
sudo dnf upgrade --refresh -y
}
# where did I get this?
mayor-upgrade() {
if [[ $(dnf check-update -q) ]]; then
echo "There are updates pending, update and reboot? [y/N]"

View file

@ -1,3 +1,4 @@
bat
dnf-plugin-system-upgrade
duf
exa