Updated config

This commit is contained in:
Eduard Urbach 2024-06-17 16:19:21 +02:00
parent cbc235c993
commit 33e490f05f
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
22 changed files with 59 additions and 135 deletions

View File

@ -8,6 +8,7 @@ bindle = $mod, Grave, exec, wtype ≈
bindle = $mod, T, exec, wtype ™ bindle = $mod, T, exec, wtype ™
bindle = $mod, C, exec, wtype © bindle = $mod, C, exec, wtype ©
bindle = $mod, R, exec, wtype ® bindle = $mod, R, exec, wtype ®
bindle = $mod, L, exec, wtype λ
# German language # German language
bindle = $mod, A, exec, wtype ä bindle = $mod, A, exec, wtype ä
@ -19,8 +20,8 @@ bindle = $mod SHIFT, U, exec, wtype Ü
bindle = $mod, S, exec, wtype ß bindle = $mod, S, exec, wtype ß
# Emoji # Emoji
bindle = $mod, W, exec, wtype 👋
bindle = $mod, H, exec, wtype ❤️
bindle = $mod, L, exec, wtype 👍
bindle = $mod, P, exec, wtype 🙏
bindle = $mod, F, exec, wtype 🤣 bindle = $mod, F, exec, wtype 🤣
bindle = $mod, H, exec, wtype ❤️
bindle = $mod, P, exec, wtype 🙏
bindle = $mod, T, exec, wtype 👍
bindle = $mod, W, exec, wtype 👋

View File

@ -1,6 +1,5 @@
require("settings") require("settings")
require("boot") require("packages")
require("setup")
require("keys") require("keys")
require("autocmds") require("autocmds")
require("usercmds") require("usercmds")

View File

@ -1,21 +1,11 @@
{ {
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"flash.nvim": { "branch": "main", "commit": "43f67935d388fbb540f8b40e8cbfd80de54f978a" }, "flash.nvim": { "branch": "main", "commit": "43f67935d388fbb540f8b40e8cbfd80de54f978a" },
"gitsigns.nvim": { "branch": "main", "commit": "4a143f13e122ab91abdc88f89eefbe70a4858a56" }, "gitsigns.nvim": { "branch": "main", "commit": "47c8e3e571376b24de62408fd0c9d12f0a9fc0a3" },
"lazy.nvim": { "branch": "main", "commit": "eb4957442e3182f051b0ae11da32e06d22c190e3" }, "lazy.nvim": { "branch": "main", "commit": "c501b429cf995c645454539b924aaefae45bb9eb" },
"mini.completion": { "branch": "main", "commit": "6cd80770afa5da1d2a529a2b4b1fb18756d7866c" },
"mini.surround": { "branch": "main", "commit": "27096c1a27324ee8f2044ea2adc77366d8a782de" },
"monokai.nvim": { "branch": "master", "commit": "b8bd44d5796503173627d7a1fc51f77ec3a08a63" }, "monokai.nvim": { "branch": "master", "commit": "b8bd44d5796503173627d7a1fc51f77ec3a08a63" },
"noice.nvim": { "branch": "main", "commit": "e5cb20c6e14305d24025ecb77d7d4dd9d61f1a64" }, "nvim-treesitter": { "branch": "master", "commit": "f7edd3f5f636dceebc874a59bdcf9de6a41dbc68" },
"nui.nvim": { "branch": "main", "commit": "322978c734866996274467de084a95e4f9b5e0b1" },
"nvim-autopairs": { "branch": "master", "commit": "c15de7e7981f1111642e7e53799e1211d4606cb9" },
"nvim-lspconfig": { "branch": "master", "commit": "4d38bece98300e3e5cd24a9aa0d0ebfea4951c16" },
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
"nvim-tree.lua": { "branch": "master", "commit": "2086e564c4d23fea714e8a6d63b881e551af2f41" },
"nvim-treesitter": { "branch": "master", "commit": "9a7ad2ff7a7ea81016aca2fc89c9b2c1a5365421" },
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
"telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" }, "telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" },
"telescope.nvim": { "branch": "master", "commit": "f12b15e1b3a33524eb06a1ae7bc852fb1fd92197" }, "telescope.nvim": { "branch": "master", "commit": "c392f1b78eaaf870ca584bd698e78076ed301b26" }
"vim-visual-multi": { "branch": "master", "commit": "b84a6d42c1c10678928b0bf8327f378c8bc8af5a" }
} }

View File

@ -56,17 +56,4 @@ on({ "VimEnter" }, {
require("telescope.builtin").find_files() require("telescope.builtin").find_files()
end end
end, end,
}) })
-- on({ "VimEnter" }, {
-- desc = "Open file explorer if there is enough horizontal space",
-- group = group,
-- callback = function()
-- local files = require("nvim-tree.api")
-- local width = vim.go.columns
--
-- if width > 120 then
-- files.tree.toggle({ focus = false })
-- end
-- end,
-- })

View File

@ -1,12 +0,0 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)

View File

@ -2,47 +2,25 @@ local function map(mode, lhs, rhs, info)
vim.keymap.set(mode, lhs, rhs, { desc = info }) vim.keymap.set(mode, lhs, rhs, { desc = info })
end end
-- Basics
map("n", ";", ":", "Command mode") map("n", ";", ":", "Command mode")
map({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", "Clear search") map("n", "U", "<cmd>redo<cr>", "Redo")
map({"n", "v"}, "<leader>q", "<cmd>qa!<cr>", "Quit all") map("n", "<Bslash>", "<cmd>ToggleWord<cr>", "Toggle word")
-- Buffer management
map("n", "<C-t>", "<cmd>enew<cr>", "New file")
map({ "i", "n", "s", "v" }, "<C-s>", "<cmd>w<cr>", "Save file")
map("n", "<C-q>", "<cmd>close<cr>", "Close window") map("n", "<C-q>", "<cmd>close<cr>", "Close window")
map("n", "<leader>l", "<cmd>Lazy<cr>", "Lazy")
-- Copy and paste map({"n", "v"}, "<leader>q", "<cmd>qa!<cr>", "Quit all")
map("v", "<C-c>", "y") map({"n", "i"}, "<esc>", "<cmd>noh<cr><esc>", "Clear search")
map("n", "<C-v>", '"+P<right>') map({"n", "i", "s", "v"}, "<C-s>", "<cmd>w<cr>", "Save file")
-- Editing lines
map({ "n", "v" }, "<C-b>", "^", "Beginning of line")
map("i", "<C-b>", "<esc>^i", "Beginning of line")
map({ "i", "n", "v" }, "<C-e>", "<end>", "End of line")
map("n", "<C-l>", "^Da", "Rewrite line")
map("i", "<C-l>", "<esc>^Da", "Rewrite line")
map("v", "<C-l>", "V", "Select line")
map("n", "<C-Enter>", "i<Enter>", "Split line")
map({"n", "v"}, "<C-a>", "<esc>ggVG", "Select all")
-- Editing multiple instances -- Editing multiple instances
map("n", "<f2>", "*#:%s//<C-r><C-w>/g<left><left>", "Replace word under cursor")
map("v", "<f2>", "y/<C-r>\"<cr>N:%s//<C-r>\"/g<left><left>", "Replace selection")
map("n", "<f3>", "#*", "Search word under cursor") map("n", "<f3>", "#*", "Search word under cursor")
map("v", "<f3>", "y/<C-r>\"<cr>N", "Search selection") map("v", "<f3>", "y/<C-r>\"<cr>N", "Search selection")
-- map("n", "<C-d>", "viw", "Select word under cursor")
-- map("v", "<C-d>", "y/<C-r>\"<cr>N", "Search selection")
map("n", "<C-r>", "*#:%s//<C-r><C-w>/g<left><left>", "Replace word under cursor")
map("v", "<C-r>", "y/<C-r>\"<cr>N:%s//<C-r>\"/g<left><left>", "Replace selection")
-- Editing words -- Line movement
map("n", "<C-w>", "ciw", "Rewrite word") map({"n", "v"}, "<C-b>", "^", "Beginning of line")
map("n", "<Bslash>", "<cmd>ToggleWord<cr>", "Toggle word") map("i", "<C-b>", "<esc>^i", "Beginning of line")
map({"i", "n", "v"}, "<C-e>", "<end>", "End of line")
-- Indenting
map("n", "<Tab>", "V>gv<esc>")
map("n", "<S-Tab>", "V<gv<esc>")
map("v", "<Tab>", ">gv")
map("v", "<S-Tab>", "<gv")
-- Increasing and decreasing numbers -- Increasing and decreasing numbers
map("n", "+", "<C-a>", "Increase number") map("n", "+", "<C-a>", "Increase number")
@ -50,11 +28,11 @@ map("n", "-", "<C-x>", "Decrease number")
map("n", "<kPlus>", "<C-a>", "Increase number") map("n", "<kPlus>", "<C-a>", "Increase number")
map("n", "<kMinus>", "<C-x>", "Decrease number") map("n", "<kMinus>", "<C-x>", "Decrease number")
-- Package manager -- Indenting
map("n", "<leader>l", "<cmd>Lazy<cr>", "Lazy") map("n", "<Tab>", "V>gv<esc>")
map("n", "<S-Tab>", "V<gv<esc>")
-- Redo map("v", "<Tab>", ">gv")
map("n", "U", "<cmd>redo<cr>", "Redo") map("v", "<S-Tab>", "<gv")
-- Shift arrow selection -- Shift arrow selection
map("n", "<S-Up>", "v<Up>") map("n", "<S-Up>", "v<Up>")
@ -76,4 +54,4 @@ map("i", "<S-Right>", "<Esc>v<Right>")
map("n", "<A-Up>", "<C-w>k", "Move to the window above") map("n", "<A-Up>", "<C-w>k", "Move to the window above")
map("n", "<A-Down>", "<C-w>j", "Move to the window below") map("n", "<A-Down>", "<C-w>j", "Move to the window below")
map("n", "<A-Left>", "<C-w>h", "Move to the window on the left") map("n", "<A-Left>", "<C-w>h", "Move to the window on the left")
map("n", "<A-Right>", "<C-w>l", "Move to the window on the right") map("n", "<A-Right>", "<C-w>l", "Move to the window on the right")

View File

@ -1,3 +1,20 @@
-- Install the package manager if needed
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
-- Load plugins
require("lazy").setup("plugins", { require("lazy").setup("plugins", {
defaults = { defaults = {
lazy = true, lazy = true,
@ -46,4 +63,4 @@ require("lazy").setup("plugins", {
}, },
}, },
}, },
}) })

View File

@ -6,4 +6,4 @@ return {
{ "S", function() require("flash").treesitter() end, mode = { "n", "o", "x" }, desc = "Flash Treesitter" }, { "S", function() require("flash").treesitter() end, mode = { "n", "o", "x" }, desc = "Flash Treesitter" },
}, },
config = true, config = true,
} }

View File

@ -2,4 +2,4 @@ return {
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
event = "BufReadPre", event = "BufReadPre",
config = true, config = true,
} }

View File

@ -1,20 +1,14 @@
return { return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
event = "VeryLazy",
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-telescope/telescope-project.nvim", "nvim-telescope/telescope-project.nvim",
-- "nvim-telescope/telescope-ui-select.nvim",
}, },
keys = { keys = {
{"<C-Tab>", "<cmd>Telescope buffers<cr>", desc = "Buffers"}, {"<C-Tab>", "<cmd>Telescope buffers<cr>", desc = "Buffers"},
{"<leader>f", "<cmd>Telescope find_files<cr>", desc = "Find files"}, {"<leader>f", "<cmd>Telescope find_files<cr>", desc = "Find files"},
{"<leader>h", "<cmd>Telescope help_tags<cr>", desc = "Help"},
{"<leader>p", "<cmd>Telescope project<cr>", desc = "Projects"}, {"<leader>p", "<cmd>Telescope project<cr>", desc = "Projects"},
{"<leader>r", "<cmd>Telescope oldfiles<cr>", desc = "Recent files"}, {"<leader>r", "<cmd>Telescope oldfiles<cr>", desc = "Recent files"},
{"<leader>w", "<cmd>Telescope grep_string<cr>", desc = "Word"},
{"<leader>ds", "<cmd>Telescope lsp_document_symbols<cr>", desc = "Document symbols"},
{"<leader>ws", "<cmd>Telescope lsp_dynamic_workspace_symbols<cr>", desc = "Workspace symbols"},
}, },
config = function() config = function()
require("telescope").setup({ require("telescope").setup({
@ -36,14 +30,7 @@ return {
sync_with_nvim_tree = true, sync_with_nvim_tree = true,
theme = "dropdown", theme = "dropdown",
}, },
-- ["ui-select"] = {
-- require("telescope.themes").get_dropdown(),
-- },
}, },
}) })
require("telescope").load_extension("project")
require("telescope").load_extension("notify")
-- require("telescope").load_extension("ui-select")
end, end,
} }

View File

@ -4,30 +4,10 @@ return {
build = ":TSUpdate", build = ":TSUpdate",
opts = { opts = {
ensure_installed = { ensure_installed = {
-- basics
"bash",
"json",
"markdown",
"markdown_inline",
"lua",
"regex",
"vim",
-- go
"go", "go",
"gomod", "gomod",
"gowork", "gowork",
"gosum", "gosum",
-- web dev
"html",
"css",
"javascript",
"typescript",
"svelte",
-- game dev
"gdscript",
}, },
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true }, indent = { enable = true },

View File

@ -10,6 +10,7 @@ end
local opt = vim.opt local opt = vim.opt
opt.autowrite = false opt.autowrite = false
opt.clipboard = "unnamedplus" opt.clipboard = "unnamedplus"
opt.cmdheight = 0
opt.completeopt = "menu,menuone,noinsert" opt.completeopt = "menu,menuone,noinsert"
opt.conceallevel = 0 opt.conceallevel = 0
opt.cursorline = true opt.cursorline = true
@ -50,4 +51,4 @@ opt.statusline = "%{repeat('─',winwidth('.'))}"
-- Undo -- Undo
opt.undofile = true opt.undofile = true
opt.undolevels = 10000 opt.undolevels = 10000

View File

@ -3,7 +3,7 @@
"interval": 60, "interval": 60,
"format": "<span color='#ffffff40'> </span> {:%H : %M}", "format": "<span color='#ffffff40'> </span> {:%H : %M}",
"tooltip-format": "{:%A, %Y-%m-%d}", "tooltip-format": "{:%A, %Y-%m-%d}",
"on-click": "gnome-clocks", "on-click": "$TERMINAL -e peaclock",
"on-click-right": "date -u +'%Y-%m-%dT%H:%M:%SZ' | wl-copy", "on-click-right": "date -u +'%Y-%m-%dT%H:%M:%SZ' | wl-copy",
}, },
"cpu": { "cpu": {
@ -73,7 +73,7 @@
"scroll-step": 5, "scroll-step": 5,
"format-icons": ["", "", ""], "format-icons": ["", "", ""],
"max-length": 10, "max-length": 10,
"on-click": "helvum", "on-click": "easyeffects",
}, },
"hyprland/window": { "hyprland/window": {
"format": "󰘔 {initialTitle}", "format": "󰘔 {initialTitle}",

View File

@ -3,7 +3,7 @@
* { * {
border: none; border: none;
font-family: "Ubuntu Nerd Font"; font-family: "Ubuntu Nerd Font";
font-size: 13px; font-size: 14px;
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
@ -11,10 +11,7 @@
/* ===== Waybar ===== */ /* ===== Waybar ===== */
#waybar { #waybar {
background: rgba(32, 32, 32, 0.8); background: rgb(38, 41, 44);
/* background: transparent; */
/* background: rgba(54, 137, 230, 0.8); */
/* border-top: 1px solid rgba(54, 137, 230, 0.8); */
} }
#waybar.hidden { #waybar.hidden {
@ -44,7 +41,7 @@
#custom-updates { #custom-updates {
color: rgba(255, 255, 255, 0.8); color: rgba(255, 255, 255, 0.8);
padding: 4px 8px; padding: 4px 8px;
margin: 2px; margin: 4px;
margin-right: 0; margin-right: 0;
border-radius: 3px; border-radius: 3px;
} }
@ -52,7 +49,6 @@
#custom-os { #custom-os {
font-size: 150%; font-size: 150%;
color: rgb(137, 220, 235); color: rgb(137, 220, 235);
/* background: transparent; */
} }
#custom-updates.disabled { #custom-updates.disabled {
@ -76,11 +72,11 @@
background: transparent; background: transparent;
text-shadow: none; text-shadow: none;
border-radius: 0; border-radius: 0;
opacity: 0.1; opacity: 0.2;
} }
#workspaces button.empty { #workspaces button.empty {
opacity: 0.1; opacity: 0.2;
} }
#workspaces button.active { #workspaces button.active {