mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 07:26:12 +01:00
cpp vim and minor fixes
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
25
nvim/.config/nvim/lua/custom/configs/null-ls.lua
Normal file
25
nvim/.config/nvim/lua/custom/configs/null-ls.lua
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user