Dotfiles V.1.1.5

Updated Neovim Plugins as well as cleaned up aerospace config and
sketbar config and added fastfetch config
This commit is contained in:
2025-06-11 22:16:38 +02:00
parent 1f4666f417
commit af9d88c05f
100 changed files with 2045 additions and 3328 deletions

View File

@@ -3,6 +3,6 @@ return {
name = "catppuccin",
priority = 1000,
config = function()
vim.cmd([[colorscheme catppuccin]])
vim.cmd([[colorscheme catppuccin-macchiato]])
end,
}

View File

@@ -16,14 +16,6 @@ opt.wrap = false
opt.ignorecase = true
opt.smartcase = true
-- folding
opt.foldmethod = "indent"
opt.foldlevelstart = 0
opt.foldlevel = 0
-- Disable folding in Telescope's result window.
vim.api.nvim_create_autocmd("FileType", { pattern = "TelescopeResults", command = [[setlocal nofoldenable]] })
-- undo
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
opt.undofile = true
@@ -32,9 +24,6 @@ opt.undofile = true
opt.hlsearch = false
opt.incsearch = true
-- cursor always stays in the middle
opt.scrolloff = 999
-- colorscheme
opt.termguicolors = true
opt.background = "dark"
@@ -52,6 +41,9 @@ opt.splitbelow = true
opt.iskeyword:append("-")
-- concealer
opt.conceallevel = 2
vim.cmd([[autocmd BufEnter *.pdf execute "!zathura '%'" | bdelete %]])
vim.cmd([[autocmd BufEnter *.jpg execute "!open '%'" | bdelete %]])
vim.cmd([[autocmd BufEnter *.png execute "!open '%'" | bdelete %]])

View File

@@ -9,7 +9,7 @@ return {
-- Set menu
dashboard.section.buttons.val = {
dashboard.button("e", " > New File", "<cmd>ene<CR>"),
dashboard.button("SPC ee", " > Toggle file explorer", "<cmd>NvimTreeToggle<CR>"),
dashboard.button("SPC ee", " > Toggle file explorer", "<cmd>Oil<CR>"),
dashboard.button("SPC ff", "󰱼 > Find File", "<cmd>Telescope find_files<CR>"),
dashboard.button("SPC fs", " > Find Word", "<cmd>Telescope live_grep<CR>"),
dashboard.button("SPC sr", "󰦛 > Resore Session", "<cmd>SessionRestore<CR>"),

View File

@@ -1,7 +1,6 @@
return {
{ "nvim-lua/plenary.nvim" },
{ "tpope/vim-surround" },
{ "christoomey/vim-tmux-navigator" },
{ "tpope/vim-fugitive" },
{ "jghauser/follow-md-links.nvim" },
}

View File

@@ -14,7 +14,7 @@ return {
local capabilities = cmp_nvim_lsp.default_capabilities()
mason_lspconfig.setup_handlers({
mason_lspconfig.setup({
function(server_name)
lspconfig[server_name].setup({
capabilities = capabilities,
@@ -22,7 +22,7 @@ return {
end,
})
lspconfig["lua_ls"].setup({
vim.lsp.config("lua_ls", {
capabilities = capabilities,
settings = { -- custom settings for lua
Lua = {
@@ -40,7 +40,7 @@ return {
},
},
})
lspconfig["pyright"].setup({
vim.lsp.config("pyright", {
capabilities = capabilities,
filetypes = { "python" },
settings = {
@@ -49,14 +49,20 @@ return {
},
},
})
lspconfig["ltex"].setup({
vim.lsp.config("ltex", {
settings = {
ltex = {
language = "de-CH",
checkFrequency = "save",
},
},
})
vim.diagnostic.config({
virtual_text = true,
signs = true,
})
wk.add({
{ "<leader>l", group = "lsp", icon = "" },
{ "<leader>lr", "<cmd>Telescope lsp_references<CR>", desc = "Show references", icon = "" },

View File

@@ -1,8 +0,0 @@
return {
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
build = function()
vim.fn["mkdp#util#install"]()
end,
}

View File

@@ -1,18 +0,0 @@
return {
"hedyhli/markdown-toc.nvim",
ft = "markdown",
opts = {
fences = {
enabled = true,
start_text = "toc-start",
end_text = "toc-end",
},
auto_update = true,
toc_list = {
markers = "1.",
cycle_markers = false,
},
},
}

View File

@@ -1,49 +0,0 @@
return {
"nvim-tree/nvim-tree.lua",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
local nvimtree = require("nvim-tree")
local wk = require("which-key")
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
nvimtree.setup({
view = {
width = 35,
relativenumber = true,
},
renderer = {
indent_markers = {
enable = true,
},
icons = {
glyphs = {
folder = {
arrow_closed = "", -- arrow when folder is closed
arrow_open = "", -- arrow when folder is open
},
},
},
},
actions = {
open_file = {
window_picker = {
enable = false,
},
},
},
filters = {
custom = { ".DS_Store" },
},
git = {
ignore = false,
},
})
wk.add({
{ "<leader>e", group = "explorer", icon = "" },
{ "<leader>ee", "<cmd>NvimTreeToggle<CR>", desc = "Toggle File Explorer", icon = "" },
{ "<leader>er", "<cmd>NvimTreeRefresh<CR>", desc = "Refresh File Explorer", icon = "󰑓" },
})
end,
}

View File

@@ -0,0 +1,19 @@
return {
"stevearc/oil.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
lazy = false,
config = function()
local oil = require("oil")
local wk = require("which-key")
oil.setup({
view_options = {
show_hidden = true,
},
})
wk.add({
{ "<leader>ee", "<cmd>Oil<CR>", desc = "File Explorer", icon = "" },
})
end,
}

View File

@@ -0,0 +1,8 @@
return {
"nvim-orgmode/orgmode",
event = "VeryLazy",
config = function()
-- Setup orgmode
require("orgmode").setup()
end,
}

View File

@@ -0,0 +1,18 @@
return {
"mrjones2014/smart-splits.nvim",
config = function()
local smart_splits = require("smart-splits")
smart_splits.setup({})
vim.keymap.set("n", "<C-S-h>", smart_splits.resize_left)
vim.keymap.set("n", "<C-S-j>", smart_splits.resize_down)
vim.keymap.set("n", "<C-S-k>", smart_splits.resize_up)
vim.keymap.set("n", "<C-S-l>", smart_splits.resize_right)
-- moving between splits
vim.keymap.set("n", "<C-h>", smart_splits.move_cursor_left)
vim.keymap.set("n", "<C-j>", smart_splits.move_cursor_down)
vim.keymap.set("n", "<C-k>", smart_splits.move_cursor_up)
vim.keymap.set("n", "<C-l>", smart_splits.move_cursor_right)
end,
}

View File

@@ -27,6 +27,7 @@ return {
{ "<leader>fc", "<cmd>Telescope grep_string<CR>", desc = "Find String in File", icon = "" },
{ "<leader>fg", "<cmd>Telescope git_files<CR>", desc = "Find git files", icon = "" },
{ "<leader>ft", "<cmd>TodoTelescope<CR>", desc = "Find todos", icon = "" },
{ "<leader>fn", "<cmd>Telescope neorg switch_workspace<CR>", desc = "Neorg Workspaces", icon = "" },
})
end,
}

View File

@@ -11,17 +11,13 @@ return {
"-pdf",
},
}
vim.g.vimtex_fold_enabled = true
vim.g.vimtex_format_enabled = true
vim.g.vimtex_fold_enabled = true
vim.g.vimtex_format_enabled = true
wk.add({
{ "<leader>v", group = "vimtex", icon = "" },
{ "<leader>vc", "<cmd>VimtexCompile>CR>", desc = "Compile LaTex File", icon = "" },
{ "<leader>vo", "<cmd>VimtexView<CR>", desc = "Open compiled PDF in Zathura", icon = "" },
{ "<leader>vd", group = "delete", icon = "" },
{ "<leader>vde", "<Plug>(vimtex-env-delete)", desc = "Delete surrounding environment" },
{ "<leader>vc", group = "change", icon = "" },
{ "<leader>vt", group = "toggle", icon = "" },
{ "<leader>vc", "<cmd>VimtexCompile>CR>", desc = "Compile LaTeX File", icon = "" },
{ "<leader>vc", "<cmd>VimtexClean>CR>", desc = "Clean LaTeX directory", icon = "" },
})
end,
}