Dotfiles V.1.2.0

This commit is contained in:
2025-12-14 22:40:50 +01:00
parent af9d88c05f
commit 9d1aa2be86
50 changed files with 582 additions and 1667 deletions

View File

@@ -1,17 +0,0 @@
return {
"rmagatti/auto-session",
config = function()
local auto_session = require("auto-session")
local wk = require("which-key")
auto_session.setup({
auto_restore_enabled = false,
})
wk.add({
{ "<leader>s", group = "session", icon = "" },
{ "<leader>sr", "<cmd>SessionRestore<CR>", desc = "Restore session for cwd", icon = "󰦛" },
{ "<leader>sr", "<cmd>SessionSave<CR>", desc = "Save Session", icon = "" },
})
end,
}

View File

@@ -1,25 +0,0 @@
return {
"akinsho/bufferline.nvim",
dependencies = {
"nvim-tree/nvim-web-devicons",
"ojroques/nvim-bufdel",
},
config = function()
local bufferline = require("bufferline")
local wk = require("which-key")
bufferline.setup({
options = {
mode = "buffers",
seperator_style = "slant",
},
})
wk.add({
{ "<leader>b", group = "buffer", icon = "󰓩" },
{ "<leader>bx", "<cmd>BufDel<CR>", desc = "Close Buffer", icon = "󰭌" },
{ "<leader>bn", "<cmd>BufferLineCycleNext<CR>", desc = "Go to next buffer", icon = "󰌒" },
{ "<leader>bp", "<cmd>BufferLineCyclePrev<CR>", desc = "Go to previous buffer", icon = "󰌥" },
})
end,
}

View File

@@ -1,11 +0,0 @@
return {
"hat0uma/csvview.nvim",
config = function()
require("csvview").setup({
view = {
display_mode = "border",
},
})
end,
}

View File

@@ -1,7 +1,7 @@
return {
"AckslD/nvim-FeMaco.lua",
lazy = true,
dependencies = { "nvim-tree/nvim-web-devicons" },
lazy = true,
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
local femaco = require("femaco")
local wk = require("which-key")
@@ -9,7 +9,7 @@ return {
femaco.setup({})
wk.add({
{"<leader>me", "<cmd>FeMaco<CR>", desc = "Edit code block in buffer", icon = ""},
{ "<leader>me", "<cmd>FeMaco<CR>", desc = "Edit code block in buffer", icon = "" },
})
end,
}

View File

@@ -8,7 +8,7 @@ return {
conform.setup({
formatters_by_ft = {
markdown = { "prettier" },
python = { "black" },
python = { "ruff" },
lua = { "stylua" },
},
format_on_save = {

View File

@@ -0,0 +1,63 @@
return {
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
local harpoon = require("harpoon")
local wk = require("which-key")
harpoon:setup()
wk.add({
{ "<leader>h", group = "harpoon", icon = "󱡀" },
{
"<leader>hi",
function()
harpoon.ui:toggle_quick_menu(harpoon:list())
end,
desc = "Open Harpoon",
icon = "󰮫",
},
{
"<leader>ha",
function()
harpoon:list():add()
end,
desc = "Add Buffer to Harpoon List",
icon = "",
},
{
"<leader>h1",
function()
harpoon:list():select(1)
end,
desc = "Select first Element in Harpoon List",
icon = "",
},
{
"<leader>h2",
function()
harpoon:list():select(2)
end,
desc = "Select second Element in Harpoon List",
icon = "",
},
{
"<leader>h3",
function()
harpoon:list():select(3)
end,
desc = "Select third Element in Harpoon List",
icon = "",
},
{
"<leader>h4",
function()
harpoon:list():select(4)
end,
desc = "Select fourth Element in Harpoon List",
icon = "",
},
})
end,
}

View File

@@ -3,6 +3,6 @@ return {
event = { "BufReadPre", "BufNewFile" },
main = "ibl",
opts = {
indent = { char = "|" },
indent = { char = "" },
},
}

View File

@@ -1,21 +1,23 @@
return {
"mfussenegger/nvim-lint",
event = { "BufReadPre", "BufNewFile" },
config = function ()
local lint = require("lint")
"mfussenegger/nvim-lint",
event = { "BufReadPre", "BufNewFile" },
config = function()
local lint = require("lint")
lint.linters_by_ft = {
python = { "pylint" },
}
lint.linters_by_ft = {
python = { "ruff" },
go = { "golangcilint" },
latex = { "vale" },
markdown = { "vale" },
}
local lint_augroup = vim.api.nvim_create_augroup("lint", {clear = true})
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
group = lint_augroup,
callback = function ()
lint.try_lint()
end,
})
end,
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
group = lint_augroup,
callback = function()
lint.try_lint()
end,
})
end,
}

View File

@@ -1,66 +1,22 @@
return {
"neovim/nvim-lspconfig",
"hrsh7th/cmp-nvim-lsp",
event = { "BufReadPre", "BufNewFile" },
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"onsails/lspkind.nvim",
{ "folke/neodev.nvim", opts = {} },
{ "folke/lazydev.nvim", ft = "lua", opts = {} },
},
config = function()
local lspconfig = require("lspconfig")
local mason_lspconfig = require("mason-lspconfig")
local cmp_nvim_lsp = require("cmp_nvim_lsp")
local wk = require("which-key")
local capabilities = cmp_nvim_lsp.default_capabilities()
mason_lspconfig.setup({
function(server_name)
lspconfig[server_name].setup({
capabilities = capabilities,
})
end,
})
vim.lsp.config("lua_ls", {
vim.lsp.config("*", {
capabilities = capabilities,
settings = { -- custom settings for lua
Lua = {
-- make the language server recognize "vim" global
diagnostics = {
globals = { "vim" },
},
workspace = {
-- make language server aware of runtime files
library = {
[vim.fn.expand("$VIMRUNTIME/lua")] = true,
[vim.fn.stdpath("config") .. "/lua"] = true,
},
},
},
},
})
vim.lsp.config("pyright", {
capabilities = capabilities,
filetypes = { "python" },
settings = {
python = {
pythonPath = vim.fn.exepath("python3.12"),
},
},
})
vim.lsp.config("ltex", {
settings = {
ltex = {
language = "de-CH",
checkFrequency = "save",
},
},
})
vim.diagnostic.config({
virtual_text = true,
signs = true,
virtual_lines = true,
})
wk.add({

View File

@@ -1,38 +1,39 @@
return {
"williamboman/mason.nvim",
dependencies = {
{
"williamboman/mason-lspconfig.nvim",
"WhoIsSethDaniel/mason-tool-installer.nvim",
},
config = function()
local mason = require("mason")
local mason_lspconfig = require("mason-lspconfig")
local mason_tool_installer = require("mason-tool-installer")
mason.setup()
mason_lspconfig.setup({
opts = {
ensure_installed = {
"ruff",
"lua_ls",
"pyright",
"clangd",
"marksman",
"texlab",
"ltex",
"gopls",
},
})
mason_tool_installer.setup({
},
dependencies = {
{ "williamboman/mason.nvim", opts = {} },
"neovim/nvim-lspconfig",
},
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
opts = {
ensure_installed = {
"mypy",
"black",
"clang-format",
"stylua",
"prettier",
"vale",
"pylint",
"latexindent",
"goimports-reviser",
"golines",
"golangci-lint",
},
})
end,
},
dependencies = {
"williamboman/mason.nvim",
},
},
}

View File

@@ -1,21 +0,0 @@
return {
"MeanderingProgrammer/markdown.nvim",
event = { "BufReadPre", "BufNewFile" },
dependencies = "nvim-treesitter/nvim-treesitter",
config = function()
local markdown = require("render-markdown")
markdown.setup({
checkbox = {
custom = {
inprogress = { raw = "[>]", rendered = "󰦕 ", highlight = "RenderedMarkdownInProgress" },
onhold = { raw = "[=]", rendered = "", highlight = "RenderedMarkdownOnhold" },
cancelled = { raw = "[_]", rendered = "", highlight = "RenderedMarkdownCancelled" },
important = { raw = "[!]", rendered = "", highlight = "RenderedMarkdownImportant" },
recurring = { raw = "[+]", rendered = "", highlight = "RenderedMarkdownRecurring" },
uncertain = { raw = "[?]", rendered = "", highlight = "RenderedMarkdownUncertain" },
},
},
})
end,
}

View File

@@ -17,8 +17,6 @@ return {
require("luasnip.loaders.from_vscode").lazy_load()
require("luasnip.loaders.from_lua").load({ paths = "~/.config/nvim/snippets/" })
luasnip.filetype_extend("vimwiki", { "markdown" })
cmp.setup({
completion = {
completeopt = "menu,menuone,preview,noselect",
@@ -44,6 +42,7 @@ return {
sources = cmp.config.sources({
{ name = "luasnip" }, -- snippets
{ name = "nvim_lsp" }, -- LSP
{ name = "lazydev" },
{ name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths
}),

View File

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

View File

@@ -29,6 +29,7 @@ return {
"css",
"bash",
"latex",
"r",
},
incremental_selection = {
enable = true,

View File

@@ -0,0 +1,14 @@
return {
"linux-cultist/venv-selector.nvim",
dependencies = {
"neovim/nvim-lspconfig",
},
ft = "python", -- Load when opening Python files
keys = {
{ ",v", "<cmd>VenvSelect<cr>" }, -- Open picker on keymap
},
opts = { -- this can be an empty lua table - just showing below for clarity.
search = {}, -- if you add your own searches, they go here.
options = {}, -- if you add plugin options, they go here.
},
}

View File

@@ -16,8 +16,8 @@ return {
wk.add({
{ "<leader>v", group = "vimtex", icon = "" },
{ "<leader>vc", "<cmd>VimtexCompile>CR>", desc = "Compile LaTeX File", icon = "" },
{ "<leader>vc", "<cmd>VimtexClean>CR>", desc = "Clean LaTeX directory", icon = "" },
{ "<leader>vc", "<cmd>VimtexCompile<CR>", desc = "Compile LaTeX File", icon = "" },
{ "<leader>vC", "<cmd>VimtexClean<CR>", desc = "Clean LaTeX directory", icon = "" },
})
end,
}

View File

@@ -21,6 +21,7 @@ return {
{ "<leader>i", group = "interface", icon = "󰮫" },
{ "<leader>il", "<cmd>Lazy<CR>", desc = "Open Lazy Menu" },
{ "<leader>im", "<cmd>Mason<CR>", desc = "Open Mason Menu" },
{ "<leader>ie", "<cmd>VenvSelect<CR>", desc = "Python Virtual Environment Selector" },
})
end,
}