1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
return {
{
"Mofiqul/vscode.nvim",
priority = 1000, -- wichtig: vor anderen UI-Plugins laden
lazy = false,
config = function()
local vscode = require("vscode")
vscode.setup({
style = "dark",
transparent = false,
italic_comments = true,
underline_links = true,
disable_nvimtree_bg = true,
})
vscode.load()
end,
},
{
"nvim-tree/nvim-tree.lua",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
cmd = { "NvimTreeToggle", "NvimTreeOpen" },
keys = {
{ "<leader>e", "<cmd>NvimTreeToggle<cr>", desc = "Explorer toggle" },
},
config = function()
require("nvim-tree").setup({
update_focused_file = {
enable = true,
update_root = false,
ignore_list = {},
},
view = {
width = 30,
},
renderer = {
highlight_git = true,
icons = {
show = {
file = true,
folder = true,
git = true,
},
},
},
filters = {
dotfiles = false,
},
})
end,
},
{
"RRethy/vim-illuminate",
event = "BufReadPost",
},
{
"mattn/calendar-vim",
config = function()
function _G.CalendarInsertDate(day, month, year)
local date = string.format("%04d-%02d-%02d", year, month, day)
vim.cmd("wincmd q")
vim.cmd("wincmd p")
local line = vim.api.nvim_get_current_line()
local col = vim.api.nvim_win_get_cursor(0)[2] + 1
local start = 1
while true do
local s, e = string.find(line, "%d%d%d%d%-%d%d%-%d%d", start)
if not s then break end
if col >= s and col <= e then
local new = line:sub(1, s - 1) .. date .. line:sub(e + 1)
vim.api.nvim_set_current_line(new)
vim.api.nvim_win_set_cursor(0, { vim.fn.line("."), s + #date - 1 })
return
end
start = e + 1
end
vim.api.nvim_put({ date }, "c", true, true)
end
vim.g.calendar_action = "v:lua.CalendarInsertDate"
vim.g.calendar_monday = 1
vim.g.calendar_wruler = "So Mo Di Mi Do Fr Sa"
vim.g.calendar_mruler = "Jan,Feb,Mär,Apr,Mai,Jun,Jul,Aug,Sep,Okt,Nov,Dez"
vim.g.calendar_weeknm = 4
end,
},
}
|