Merge branch 'main' of codeberg.org:aleidk/dots
This commit is contained in:
commit
ec519c127f
7 changed files with 51 additions and 36 deletions
9
README.md
Normal file
9
README.md
Normal 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
|
||||||
|
```
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
|
|
||||||
|
function MAP(mode, l, r, desc)
|
||||||
|
vim.keymap.set(mode, l, r, { desc = desc, silent = true })
|
||||||
|
end
|
||||||
|
|
||||||
local function default(desc)
|
local function default(desc)
|
||||||
return {
|
return {
|
||||||
silent = true,
|
silent = true,
|
||||||
|
|
|
||||||
|
|
@ -3,23 +3,23 @@ return {
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
after = "onedark",
|
after = "onedark",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle pin" },
|
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle pin" },
|
||||||
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete non-pinned buffers" },
|
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete non-pinned buffers" },
|
||||||
{ "<S-h>", "<cmd>BufferLineCyclePrev<cr>", desc = "Prev buffer" },
|
{ "<S-h>", "<cmd>BufferLineCyclePrev<cr>", desc = "Prev buffer" },
|
||||||
{ "<S-l>", "<cmd>BufferLineCycleNext<cr>", desc = "Next buffer" },
|
{ "<S-l>", "<cmd>BufferLineCycleNext<cr>", desc = "Next buffer" },
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
"echasnovski/mini.bufremove",
|
"echasnovski/mini.bufremove",
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>bd", function() require("mini.bufremove").delete(0, false) end, desc = "Delete Buffer" },
|
{ "<leader>bd", function() require("mini.bufremove").delete(0, false) end, desc = "Delete Buffer" },
|
||||||
{ "<leader>bD", function() require("mini.bufremove").delete(0, true) end, desc = "Delete Buffer (Force)" },
|
{ "<leader>bD", function() require("mini.bufremove").delete(0, true) end, desc = "Delete Buffer (Force)" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
opts = {
|
local opts = {
|
||||||
highlights = { separator = { bg = "NONE" } },
|
highlights = { separator = { bg = "NONE" } },
|
||||||
options = {
|
options = {
|
||||||
-- FIXME: Doesn't work with onedark pro colorscheme
|
-- FIXME: Doesn't work with onedark pro colorscheme
|
||||||
|
|
@ -28,13 +28,13 @@ return {
|
||||||
close_command = function(n)
|
close_command = function(n)
|
||||||
require("mini.bufremove").delete(n, false)
|
require("mini.bufremove").delete(n, false)
|
||||||
end,
|
end,
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
right_mouse_command = function(n) require("mini.bufremove").delete(n, false) end,
|
right_mouse_command = function(n) require("mini.bufremove").delete(n, false) end,
|
||||||
diagnostics = "nvim_lsp",
|
diagnostics = "nvim_lsp",
|
||||||
diagnostics_indicator = function(_, _, diag)
|
diagnostics_indicator = function(_, _, diag)
|
||||||
local icons = require("aleidk.constants").icons.diagnostics
|
local icons = require("aleidk.constants").icons.diagnostics
|
||||||
local ret = (diag.error and icons.Error .. diag.error .. " " or "")
|
local ret = (diag.error and icons.Error .. diag.error .. " " or "")
|
||||||
.. (diag.warning and icons.Warn .. diag.warning or "")
|
.. (diag.warning and icons.Warn .. diag.warning or "")
|
||||||
return vim.trim(ret)
|
return vim.trim(ret)
|
||||||
end,
|
end,
|
||||||
offsets = {
|
offsets = {
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ return {
|
||||||
|
|
||||||
-- Useful status updates for LSP
|
-- Useful status updates for LSP
|
||||||
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
||||||
{ "j-hui/fidget.nvim", opts = {} },
|
{ "j-hui/fidget.nvim", opts = {} },
|
||||||
|
|
||||||
-- Additional lua configuration, makes nvim stuff amazing!
|
-- Additional lua configuration, makes nvim stuff amazing!
|
||||||
{ "folke/neodev.nvim", opts = {} },
|
{ "folke/neodev.nvim", opts = {} },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -56,4 +56,12 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"RRethy/vim-illuminate",
|
||||||
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
|
opts = { delay = 200 },
|
||||||
|
config = function(_, opts)
|
||||||
|
require("illuminate").configure(opts)
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,16 @@
|
||||||
return {
|
return {
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
-- dependencies = { "kyazdani42/nvim-web-devicons" },
|
cmd = { "TroubleToggle", "Trouble" },
|
||||||
config = function()
|
config = function()
|
||||||
require("trouble").setup({
|
require("trouble").setup({
|
||||||
mode = "document_diagnostics",
|
mode = "document_diagnostics",
|
||||||
action_keys = { -- key mappings for actions in the trouble list
|
action_keys = {
|
||||||
-- map to {} to remove a mapping, for example:
|
open_split = "s",
|
||||||
-- close = {},
|
open_vsplit = "v",
|
||||||
close = "q", -- close the list
|
open_tab = "t",
|
||||||
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
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
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,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,19 @@ dnf-save-install() {
|
||||||
sudo dnf install -y $(cat "$DOTS/exports/dnf.txt")
|
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() {
|
upgrade() {
|
||||||
sudo dnf upgrade --refresh -y
|
sudo dnf upgrade --refresh -y
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# where did I get this?
|
||||||
mayor-upgrade() {
|
mayor-upgrade() {
|
||||||
if [[ $(dnf check-update -q) ]]; then
|
if [[ $(dnf check-update -q) ]]; then
|
||||||
echo "There are updates pending, update and reboot? [y/N]"
|
echo "There are updates pending, update and reboot? [y/N]"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
bat
|
||||||
dnf-plugin-system-upgrade
|
dnf-plugin-system-upgrade
|
||||||
duf
|
duf
|
||||||
exa
|
exa
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue