Update 2025-03-30

Update 2025-03-08

Update 2025-03-09

Update 2025-03-10

Update 2025-03-12

Update 2025-03-15

Update 2025-03-16

Update 2025-03-17

Update 2025-03-18

Update 2025-03-21

Update 2025-03-23

Update 2025-03-27

Update 2025-03-28

Update 2025-03-30
This commit is contained in:
2025-03-03 09:40:02 +02:00
parent e0f12a9ce3
commit f9df29cfaa
29 changed files with 392 additions and 215 deletions

View File

@@ -125,3 +125,14 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, {
vim.opt_local.colorcolumn = "80"
end
]]
vim.api.nvim_create_user_command("OpenPdf", function()
local filepath = vim.api.nvim_buf_get_name(0)
if filepath:match("%.typ$") then
os.execute(
"zathura "
.. vim.fn.shellescape(filepath:gsub("%.typ$", ".pdf"):gsub("/([^/]+)%.pdf$", "/target/%1.pdf"))
.. " 2>/dev/null &"
)
end
end, {})

View File

@@ -4,7 +4,7 @@ local vmap = require("config.mappings").vmap
local tmap = require("config.mappings").tmap
local imap = require("config.mappings").imap
-- Unpam keys
-- Unmap keys
vim.keymap.set("", "<space>", "<nop>")
nmap("Q", "<nop>")
nmap("<C-space>", "<nop>")

View File

@@ -1,36 +1,32 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
local opts = {
ui = {
-- The border to use for the UI window. Accepts same border values as |nvim_open_win()|.
border = "rounded",
},
change_detection = {
-- automatically check for config file changes and reload the ui
enabled = false,
notify = true, -- get a notification when changes are found
},
install = {
-- try to load one of these colorschemes when starting an installation during startup
colorscheme = { "rose-pine" },
},
rocks = {
hererocks = true, -- recommended if you do not have global installation of Lua 5.1.
},
}
require("lazy").setup("plugins", opts)
-- Setup lazy.nvim
require("lazy").setup({
spec = { { import = "plugins" } },
install = { colorscheme = { "rose-pine" } },
ui = { border = "rounded" },
change_detection = { enabled = false },
})