Merge branch 'main' of github.com:eRgo35/dots

This commit is contained in:
2024-03-13 12:09:38 +01:00
11 changed files with 108 additions and 1896 deletions

2
.gitignore vendored
View File

@@ -5,3 +5,5 @@ dwm/.dwm/dwm
dwm/.dwm/drw.o dwm/.dwm/drw.o
ulauncher/.config/ulauncher/ext_preferences ulauncher/.config/ulauncher/ext_preferences
spicetify/.config/spicetify/Extracted spicetify/.config/spicetify/Extracted
.zcompdump
.zcompcache

View File

@@ -1,8 +1,8 @@
[Settings] [Settings]
gtk-theme-name=gruvbox-dark-gtk gtk-theme-name=gruvbox-dark-gtk
gtk-icon-theme-name=oomox-gruvbox-dark gtk-icon-theme-name=gruvbox-dark-icons-gtk
gtk-font-name=Cantarell 11 gtk-font-name=Sans 10
gtk-cursor-theme-name=Simp1e-Gruvbox-Dark gtk-cursor-theme-name=Catppuccin-Macchiato-Yellow-Cursors
gtk-cursor-theme-size=0 gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR

View File

@@ -14,7 +14,15 @@ for _, lsp in ipairs(servers) do
} }
end end
lspconfig.svelte.setup{} lspconfig.svelte.setup {}
lspconfig.clangd.setup {
on_attach = function (client, bufnr)
client.server_capabilities.signatureHelpProvider = false
on_attach(client, bufnr)
end,
capabilities = capabilities,
}
lspconfig.rust_analyzer.setup({ lspconfig.rust_analyzer.setup({
on_attach = on_attach, on_attach = on_attach,

View File

@@ -0,0 +1,25 @@
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
local null_ls = require("null-ls")
local opts = {
sources = {
null_ls.builtins.formatting.clang_format,
},
on_attach = function (client, bufnr)
if client.supports_method("textDocument/formatting") then
vim.api.nvim_clear_autocmds({
group = augroup,
buffer = bufnr,
})
vim.api.nvim_create_autocmd("BufWritePre", {
group = augroup,
buffer = bufnr,
callback = function()
vim.lsp.buf.format({ bufnr = bufnr })
end,
})
end
end,
}
return opts

View File

@@ -19,6 +19,20 @@ M.general = {
}, },
} }
M.dap = {
plugin = true,
n = {
["<leader>db"] = {
"<cmd> DapToggleBreakpoint <CR>",
"Add breakpoint at line",
},
["<leader>dr"] = {
"<cmd> DapContinue <CR>",
"Start or continue the debugger",
}
}
}
-- more keybinds! -- more keybinds!
return M return M

View File

@@ -16,6 +16,9 @@ local plugins = {
opts = { opts = {
ensure_installed = { ensure_installed = {
"rust-analyzer", "rust-analyzer",
"clangd",
"clang-format",
"codelldb",
} }
}, },
}, },
@@ -30,6 +33,53 @@ local plugins = {
opts = overrides.nvimtree, opts = overrides.nvimtree,
}, },
{
"jose-elias-alvarez/null-ls.nvim",
event = "VeryLazy",
opts = function()
return require "custom.configs.null-ls"
end,
},
{
"rcarriga/nvim-dap-ui",
event = "VeryLazy",
dependencies = "mfussenegger/nvim-dap",
config = function()
local dap = require("dap")
local dapui = require("dapui")
dapui.setup()
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open()
end
dap.listeners.after.event_terminated["dapui_config"] = function()
dapui.close()
end
dap.listeners.after.event_exited["dapui_config"] = function()
dapui.close()
end
end
},
{
"jay-babu/mason-nvim-dap.nvim",
event = "VeryLazy",
dependencies = {
"williamboman/mason.nvim",
"mfussenegger/nvim-dap",
},
opts = {
handlers = {}
},
},
{
"mfussenegger/nvim-dap",
config = function(_, _)
require("core.utils").load_mappings("dap")
end
},
{ {
"rust-lang/rust.vim", "rust-lang/rust.vim",
ft = "rust", ft = "rust",

View File

@@ -17,6 +17,6 @@ vec4 window_shader() {
if (invert_color) if (invert_color)
c = vec4(vec3(c.a, c.a, c.a) - vec3(c), c.a); c = vec4(vec3(c.a, c.a, c.a) - vec3(c), c.a);
c *= opacity; c *= opacity;
vec4 default_post_processing(vec4 c); // vec4 default_post_processing(vec4 c);
return c; return c;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -45,6 +45,8 @@ export NODE_REPL_HISTORY_SIZE='32768';
# Use sloppy mode by default, matching web browsers. # Use sloppy mode by default, matching web browsers.
export NODE_REPL_MODE='sloppy'; export NODE_REPL_MODE='sloppy';
export WINIT_X11_SCALE_FACTOR=1;
# Make Python use UTF-8 encoding for output to stdin, stdout, and stderr. # Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
export PYTHONIOENCODING='UTF-8'; export PYTHONIOENCODING='UTF-8';