update to autoexec and neovim

This commit is contained in:
s0wlz (Matthias Puchstein)
2025-12-27 14:25:37 +01:00
parent d6acd0b13f
commit 8698175e6b
13 changed files with 28 additions and 144 deletions

View File

@@ -1,6 +1,6 @@
[Desktop Entry]
Icon=/home/mpuchstein/.local/share/JetBrains/Toolbox/bin/toolbox.svg
Exec=/home/mpuchstein/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox --minimize
Icon=/opt/jetbrains-toolbox/toolbox.svg
Exec=/opt/jetbrains-toolbox/jetbrains-toolbox --minimize
Version=1.0
Type=Application
Categories=Development

View File

@@ -1,3 +1,4 @@
file:///home/mpuchstein/Dev Dev
file:///home/mpuchstein/Documents/personal personal
file:///home/mpuchstein/Documents/uni uni
file:///home/mpuchstein/Nextcloud/DSA-Aufnahmen DSA-Aufnahmen
@@ -8,4 +9,3 @@ file:///home/mpuchstein/Nextcloud Nextcloud
file:///home/mpuchstein/Downloads Downloads
file:///home/mpuchstein/Documents/uni/ss25/AD/Vorlesung Vorlesung
file:///home/mpuchstein/Documents/ttrpg/dsa5 dsa5
file:///home/mpuchstein/Pictures/

View File

@@ -1,7 +1,7 @@
[Settings]
gtk-theme-name=Adwaita
gtk-icon-theme-name=rose-pine-icons
gtk-font-name=Adwaita Sans 11
gtk-icon-theme-name=Adwaita
gtk-font-name=InconsolataGo Nerd Font Mono 11
gtk-cursor-theme-name=volantes
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_ICONS

View File

@@ -1,5 +1,4 @@
vim.opt_local.spell = true
vim.opt_local.spelllang = { "en_gb", "de_de", "fr_fr" }
vim.opt_local.spelllang = { "en_gb", "de_de", "fr" }
vim.opt_local.wrap = true
vim.opt_local.linebreak = true
vim.opt_local.conceallevel = 2

View File

@@ -5,5 +5,4 @@ vim.opt_local.spelllang = { "en_gb", "de_de", "fr" }
-- Niceties for prose/math
vim.opt_local.wrap = true
vim.opt_local.linebreak = true
vim.opt_local.conceallevel = 2 -- vimtex has sensible conceal defaults
vim.opt_local.textwidth = 0 -- don't hard-wrap LaTeX

View File

@@ -21,7 +21,6 @@ return {
{ import = "astrocommunity.pack.toml" },
{ import = "astrocommunity.pack.xml" },
{ import = "astrocommunity.pack.yaml" },
{ import = "astrocommunity.pack.yaml" },
{ import = "astrocommunity.pack.python" },
{ import = "astrocommunity.pack.kotlin" },
{ import = "astrocommunity.pack.php" },

View File

@@ -39,6 +39,10 @@ return {
servers = {
-- "pyright"
},
-- ensure servers are installed
ensure_installed = {
"ltex",
},
-- customize language server configuration options passed to `lspconfig`
---@diagnostic disable: missing-fields
config = {

View File

@@ -7,10 +7,12 @@ return {
dependencies = {
"rafamadriz/friendly-snippets",
},
config = function()
local ls = require "luasnip"
-- optional, but nice:
config = function(plugin, opts)
-- run the default astronvim config that calls the setup call
require "astronvim.plugins.configs.luasnip"(plugin, opts)
-- lazy load snippets from friendly-snippets
require("luasnip.loaders.from_vscode").lazy_load()
-- add more custom luasnip configuration such as filetype extend or custom snippets
require("luasnip").filetype_extend("javascript", { "javascriptreact" })
end,
}

View File

@@ -1,125 +1,5 @@
-- You can also add or configure plugins by creating files in this `plugins/` folder
-- PLEASE REMOVE THE EXAMPLES YOU HAVE NO INTEREST IN BEFORE ENABLING THIS FILE
-- Here are some examples:
---@type LazySpec
return {
-- == Examples of Adding Plugins ==
"andweeb/presence.nvim",
{
"ray-x/lsp_signature.nvim",
event = "BufRead",
config = function() require("lsp_signature").setup() end,
},
-- == Examples of Overriding Plugins ==
-- customize dashboard options
{
"folke/snacks.nvim",
opts = {
dashboard = {
preset = {
header = table.concat({
" █████ ███████ ████████ ██████ ██████ ",
"██ ██ ██ ██ ██ ██ ██ ██",
"███████ ███████ ██ ██████ ██ ██",
"██ ██ ██ ██ ██ ██ ██ ██",
"██ ██ ███████ ██ ██ ██ ██████ ",
"",
"███  ██ ██  ██ ██ ███  ███",
"████  ██ ██  ██ ██ ████  ████",
"██ ██  ██ ██  ██ ██ ██ ████ ██",
"██  ██ ██  ██  ██  ██ ██  ██  ██",
"██   ████   ████   ██ ██  ██",
}, "\n"),
},
},
},
},
-- You can disable default plugins as follows:
--{ "max397574/better-escape.nvim", enabled = false },
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
{
"L3MON4D3/LuaSnip",
config = function(plugin, opts)
require "astronvim.plugins.configs.luasnip"(plugin, opts) -- include the default astronvim config that calls the setup call
-- add more custom luasnip configuration such as filetype extend or custom snippets
local luasnip = require "luasnip"
luasnip.filetype_extend("javascript", { "javascriptreact" })
end,
},
{
"windwp/nvim-autopairs",
config = function(plugin, opts)
require "astronvim.plugins.configs.nvim-autopairs"(plugin, opts) -- include the default astronvim config that calls the setup call
-- add more custom autopairs configuration such as custom rules
local npairs = require "nvim-autopairs"
local Rule = require "nvim-autopairs.rule"
local cond = require "nvim-autopairs.conds"
npairs.add_rules(
{
Rule("$", "$", { "tex", "latex" })
-- don't add a pair if the next character is %
:with_pair(cond.not_after_regex "%%")
-- don't add a pair if the previous character is xxx
:with_pair(
cond.not_before_regex("xxx", 3)
)
-- don't move right when repeat character
:with_move(cond.none())
-- don't delete if the next character is xx
:with_del(cond.not_after_regex "xx")
-- disable adding a newline when you press <cr>
:with_cr(cond.none()),
},
-- disable for .vim files, but it work for another filetypes
Rule("a", "a", "-vim")
)
end,
},
{
"obsidian-nvim/obsidian.nvim",
version = "*", -- recommended, use latest release instead of latest commit
lazy = true,
ft = "markdown",
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
-- event = {
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
-- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
-- -- refer to `:h file-pattern` for more examples
-- "BufReadPre path/to/my-vault/*.md",
-- "BufNewFile path/to/my-vault/*.md",
-- },
dependencies = {
-- Required.
"nvim-lua/plenary.nvim",
-- see above for full list of optional dependencies ☝️
},
---@module 'obsidian'
---@type obsidian.config.ClientOpts
opts = {
workspaces = {
{
name = "uni",
path = "~/Documents/uni",
},
},
-- Optional, completion of wiki links, local markdown links, and tags using nvim-cmp.
completion = {
-- Enables completion using nvim_cmp
nvim_cmp = false,
-- Enables completion using blink.cmp
blink = true,
-- Trigger completion at 2 chars.
min_chars = 2,
},
},
},
}

View File

@@ -1,6 +1,6 @@
return {
"lervag/vimtex",
lazy = false, -- load immediately (recommended by astrocommunity)
ft = { "tex", "latex" }, -- lazy-load on filetype
init = function()
-- Viewer
vim.g.vimtex_view_method = "zathura"

View File

@@ -1,5 +1,6 @@
if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- This will run last in the setup process.
-- This is just pure lua so anything that doesn't
-- fit in the normal config locations above can go here
-- Set the conceal level for prettier formatting in LaTeX and Markdown
vim.opt.conceallevel = 2

View File

@@ -29,11 +29,11 @@ cl_hud_color 12
cl_sanitize_player_names 0
cl_showloadout 1
gameinstructor_enable 0
//CROSSHAIR COMMANDS
cl_crosshairstyle 4
cl_crosshairsize 3
cl_crosshairthickness 1
cl_crosshairsize 2
cl_crosshairthickness 0.5
cl_crosshairgap -3
cl_crosshair_drawoutline 0
cl_crosshairdot 0
@@ -42,14 +42,14 @@ cl_crosshairusealpha 1
cl_crosshairalpha 255
cl_crosshair_recoil 0
cl_crosshairgap_useweaponvalue 0
cl_crosshaircolor 3
cl_crosshaircolor 5
//EXTRAS
cl_crosshair_sniper_width 1
cl_crosshair_friendly_warning 1
// Mouse
sensitivity "0.425"
sensitivity "0.355"
zoom_sensitivity_ratio "1.0"
// Radar

View File

@@ -1,7 +1,5 @@
# Added by Toolbox App
export PATH="${PATH}:/home/mpuchstein/.local/share/JetBrains/Toolbox/scripts"
export PATH="${PATH}:/home/mpuchstein/Dev/JetBrains/Toolbox/scripts"
export PATH="${PATH}:/home/mpuchstein/.local/bin"
export PATH="${PATH}:/home/mpuchstein/.cargo/bin"
@@ -38,3 +36,5 @@ export ROCM_PATH=/opt/rocm
export HSA_OVERRIDE_GFX_VERSION=10.3.0
export HIP_VISIBLE_DEVICES=1
export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH
export UV_CACHE_DIR=/home/mpuchstein/Dev/uv/uv-cache/