Compare commits

...

38 commits

Author SHA1 Message Date
2ef1c2fa60 Merge remote-tracking branch 'origin/master' into server 2023-09-27 11:27:42 +02:00
8b7bb0aa29 better movements for screen 2023-09-27 11:09:44 +02:00
eaf8f415e5 spell 2023-09-27 10:55:29 +02:00
2c30935eb1 Merge remote-tracking branch 'origin/wsl' 2023-09-27 10:27:22 +02:00
Christoph J. Scherr
fb1c6a971d dont auto open nvim-tree 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
c0a6972398 auto open nvim-tree 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
38656d0cd3 tab shenanigans 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
a757636e38 colorscheme things 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
7acbe5078b dbg for c actually works 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
cbc4a9b5af dbg shit but does something 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
870dc27c24 tried to do debug things 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
898838e61a spell 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
cc254a4002 disable hotkeys for disabled plugins 2023-09-27 10:27:00 +02:00
536d7cf5e7 better nvim logo design 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
1be6097544 better move through windows 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
de02065e7b editor tmux keys leader+w+hjkl 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
57f5c52ac5 spell 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
fd1fcb1ea5 change window leap 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
ca32d0c040 formatting 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
a3744a35cc better latex 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
f6f13f50a2 ensure installed mason plugins 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
b77762f373 spell 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
431ebe0969 disable all surround things 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
285664e93a wsl: reenable neorg 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
390c02ac9b set sandwich maps 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
36b2ff1baa surround maps 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
78e6db956b spell 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
0258b54f81 Merge branch 'master' into wsl 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
bff0f07faa spell 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
2c0ad5ff56 spell 2023-09-27 10:27:00 +02:00
Christoph J. Scherr
94dbc0d8d2 dont annoy me with ro 2023-09-27 10:27:00 +02:00
b314c65ccb spell 2023-09-25 22:44:36 +02:00
Christoph J. Scherr
b8e99edf94 dont auto open nvim-tree 2023-09-25 13:48:29 +02:00
Christoph J. Scherr
fc7beaed1d tab shenanigans 2023-09-22 13:48:06 +02:00
Christoph J. Scherr
5107df52d4 colorscheme things 2023-09-22 13:08:29 +02:00
Christoph J. Scherr
5928954cc9 tried to do debug things 2023-09-21 15:58:44 +02:00
Christoph J. Scherr
8aa6183df7 spell 2023-09-21 12:48:22 +02:00
Christoph J. Scherr
ee7ee946ac disable hotkeys for disabled plugins 2023-09-21 12:48:16 +02:00
11 changed files with 314 additions and 53 deletions

View file

@ -14,6 +14,15 @@ vim.api.nvim_create_autocmd({ 'FocusGained', 'TermClose', 'TermLeave' }, {
command = 'checktime',
})
-- Caution: Causes Errors?
-- -- Open Neotree in new tabs
-- vim.api.nvim_create_autocmd({'TabNewEntered' }, {
-- group = augroup('automatic_neotree'),
-- callback = function()
-- vim.cmd('Neotree')
-- end,
-- })
-- Go to last loc when opening a buffer, see ':h last-position-jump'
vim.api.nvim_create_autocmd('BufReadPost', {
group = augroup('last_loc'),
@ -79,7 +88,7 @@ vim.api.nvim_create_autocmd('BufWritePre', {
-- Disable conceallevel for specific file-types.
vim.api.nvim_create_autocmd('FileType', {
group = augroup('fix_conceallevel'),
pattern = { 'markdown' },
pattern = { 'latex', 'tex' },
callback = function()
vim.opt_local.conceallevel = 0
end,

View file

@ -25,7 +25,7 @@ local defaults = {
-- String like `habamax` or a function that will load the colorscheme.
-- Disabled by default to allow theme-loader.nvim to manage the colorscheme.
---@type string|fun()
colorscheme = '',
colorscheme = 'kanagawa',
features = {
elite_mode = true,

View file

@ -36,8 +36,8 @@ map('n', '<leader>l', '<cmd>Lazy<cr>', { desc = 'Open Lazy UI' })
--map({ 'n', 'x' }, 'J', "<C-d>")
-- Easier line-wise movement
map({'n', 'v'}, 'H', 'g^')
map({'n', 'v'}, 'L', 'g$')
map({'n', 'v'}, 'H', '<HOME>')
map({'n', 'v'}, 'L', '<END>')
-- Toggle fold or select option from popup menu
---@return string
@ -84,6 +84,10 @@ map('n', 'zh', 'z4h')
map('n', 'zn', ']s')
map('n', 'zN', '[s')
-- move screen and line up
map('n', '<C-k>', '<C-y>k')
map('n', '<C-j>', '<C-e>j')
-- Clipboard
-- ===
@ -344,8 +348,8 @@ map('n', '<leader>"', '<cmd>vsplit<CR>', { desc = 'Split window vertically' })
map('n', '<leader>wb', '<cmd>buffer#<CR>', { desc = 'Alternate buffer' })
map('n', '<leader>wc', '<cmd>close<CR>', { desc = 'Close window' })
map('n', '<leader>wd', '<cmd>bdelete<CR>', { desc = 'Buffer delete' })
map('n', '<leader>wv', '<cmd>split<CR>', { desc = 'Split window horizontally' })
map('n', '<leader>wg', '<cmd>vsplit<CR>', { desc = 'Split window vertically' })
map('n', '<leader>w%', '<cmd>split<CR>', { desc = 'Split window horizontally' })
map('n', '<leader>w"', '<cmd>vsplit<CR>', { desc = 'Split window vertically' })
map('n', '<leader>wt', '<cmd>tabnew<CR>', { desc = 'New tab' })
map('n', '<leader>wtp', '<cmd>tabprevious<CR>', { desc = 'Previous tab' })
map('n', '<leader>wtn', '<cmd>tabnext<CR>', { desc = 'Next tab' })

View file

@ -44,11 +44,11 @@ return {
},
sources = cmp.config.sources({
{ name = 'nvim_lsp', priority = 50 },
{ name = 'path', priority = 40 },
{ name = 'luasnip', priority = 30 },
{ name = 'path', priority = 40 },
{ name = 'luasnip', priority = 30 },
}, {
{ name = 'buffer', priority = 50, keyword_length = 3 },
{ name = 'emoji', insert = true, priority = 20 },
{ name = 'emoji', insert = true, priority = 20 },
{
name = 'tmux',
priority = 10,
@ -135,7 +135,7 @@ return {
dependencies = { 'rafamadriz/friendly-snippets' },
build = (not jit.os:find('Windows'))
and "echo 'jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp"
or nil,
or nil,
-- stylua: ignore
keys = {
{
@ -205,12 +205,12 @@ return {
local plugin = require('lazy.core.config').spec.plugins['mini.surround']
local opts = require('lazy.core.plugin').values(plugin, 'opts', false)
local mappings = {
{ opts.mappings.add, desc = 'Add surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.delete, desc = 'Delete surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.find, desc = 'Find right surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.find_left, desc = 'Find left surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.highlight, desc = 'Highlight surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.replace, desc = 'Replace surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.add, desc = 'Add surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.delete, desc = 'Delete surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.find, desc = 'Find right surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.find_left, desc = 'Find left surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.highlight, desc = 'Highlight surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.replace, desc = 'Replace surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.update_n_lines, desc = 'Update `MiniSurround.config.n_lines`', mode = { 'n', 'x', 'v' } },
}
mappings = vim.tbl_filter(function(m)
@ -220,12 +220,12 @@ return {
end,
opts = {
mappings = {
add = '<leader>sa', -- Add surrounding in Normal and Visual modes
delete = '<leader>sd', -- Delete surrounding
find = '<leader>sf', -- Find surrounding (to the right)
find_left = '<leader>sF', -- Find surrounding (to the left)
highlight = '<leader>sh', -- Highlight surrounding
replace = '<leader>cs', -- Replace surrounding
add = '<leader>sa', -- Add surrounding in Normal and Visual modes
delete = '<leader>sd', -- Delete surrounding
find = '<leader>sf', -- Find surrounding (to the right)
find_left = '<leader>sF', -- Find surrounding (to the left)
highlight = '<leader>sh', -- Highlight surrounding
replace = '<leader>cs', -- Replace surrounding
update_n_lines = '<leader>su', -- Update `n_lines`
},
},
@ -238,13 +238,13 @@ return {
dependencies = { 'JoosepAlviste/nvim-ts-context-commentstring' },
keys = {
{ '<Leader>v', 'gcc', remap = true, silent = true, mode = 'n' },
{ '<Leader>v', 'gc', remap = true, silent = true, mode = 'x' },
{ '<Leader>v', 'gc', remap = true, silent = true, mode = 'x' },
},
opts = {
options = {
custom_commentstring = function()
return require('ts_context_commentstring.internal').calculate_commentstring()
or vim.bo.commentstring
or vim.bo.commentstring
end,
},
},
@ -304,9 +304,9 @@ return {
'AndrewRadev/linediff.vim',
cmd = { 'Linediff', 'LinediffAdd' },
keys = {
{ '<Leader>mdf', ':Linediff<CR>', mode = 'x', desc = 'Line diff' },
{ '<Leader>mda', ':LinediffAdd<CR>', mode = 'x', desc = 'Line diff add' },
{ '<Leader>mds', '<cmd>LinediffShow<CR>', desc = 'Line diff show' },
{ '<Leader>mdf', ':Linediff<CR>', mode = 'x', desc = 'Line diff' },
{ '<Leader>mda', ':LinediffAdd<CR>', mode = 'x', desc = 'Line diff add' },
{ '<Leader>mds', '<cmd>LinediffShow<CR>', desc = 'Line diff show' },
{ '<Leader>mdr', '<cmd>LinediffReset<CR>', desc = 'Line diff reset' },
},
},
@ -323,4 +323,63 @@ return {
vim.g.dsf_no_mappings = 1
end,
},
-----------------------------------------------------------------------------
{
-- TODO:
-- make debugging for C. Cpp, Rust, Python work
'mfussenegger/nvim-dap',
keys = {
{
'<leader>db',
'<cmd>lua require\'dap\'.toggle_breakpoint()<CR>',
mode = { 'n', 'x' },
desc = 'Debugging: Toggle breakpoint',
},
{
'<leader>dc',
'<cmd>lua require\'dap\'.continue()<CR>',
mode = { 'n', 'x' },
desc = 'Debugging: Start or continue debug session',
},
{
'<leader>dsi',
'<cmd>lua require\'dap\'.step_into()<CR>',
mode = { 'n', 'x' },
desc = 'Debugging: Step into code',
},
{
'<leader>dso',
'<cmd>lua require\'dap\'.step_over()<CR>',
mode = { 'n', 'x' },
desc = 'Debugging: Step over code',
},
{
'<leader>dr',
'<cmd>lua require\'dap\'.repl.open()<CR>',
mode = { 'n', 'x' },
desc = 'Debugging: repl Menu',
},
{
'<leader>dms',
function()
local widgets = require('dap.ui.widgets')
local my_sidebar = widgets.sidebar(widgets.scopes)
my_sidebar.open()
end,
mode = { 'n', 'x' },
desc = 'Debugging: Menu scopes',
},
{
'<leader>dmf',
function()
local widgets = require('dap.ui.widgets')
local my_sidebar = widgets.sidebar(widgets.frames)
my_sidebar.open()
end,
mode = { 'n', 'x' },
desc = 'Debugging: Menu frames',
},
},
},
}

View file

@ -1,15 +1,4 @@
-- Plugins: Colorschemes
-- https://github.com/rafi/vim-config
return {
{
'rafi/theme-loader.nvim',
lazy = false,
priority = 99,
opts = { initial_colorscheme = 'kanagawa' },
},
{ 'rafi/neo-hybrid.vim', priority = 100, lazy = false },
{ 'rafi/awesome-vim-colorschemes', lazy = false },
{ 'AlexvZyl/nordic.nvim' },
@ -24,7 +13,7 @@ return {
lazy = true,
name = 'catppuccin',
opts = {
flavour = 'mocha', -- latte, frappe, macchiato, mocha
flavour = 'latte', -- latte, frappe, macchiato, mocha
dim_inactive = { enabled = false },
integrations = {
alpha = true,
@ -72,15 +61,15 @@ return {
},
{
'rebelot/kanagawa.nvim',
lazy = true,
lazy = false,
name = 'kanagawa',
config = function()
require('kanagawa').setup({
compile = false, -- enable compiling the colorscheme
compile = true, -- enable compiling the colorscheme
undercurl = true, -- enable undercurls
commentStyle = { italic = true },
commentStyle = { italic = false },
functionStyle = {},
keywordStyle = { italic = true},
keywordStyle = { bold = true },
statementStyle = { bold = true },
typeStyle = {},
transparent = false, -- do not set background color
@ -93,13 +82,12 @@ return {
overrides = function(colors) -- add/modify highlights
return {}
end,
theme = "wave", -- Load "wave" theme when 'background' option is not set
theme = "dragon", -- Load "wave" theme when 'background' option is not set
background = { -- map the value of 'background' option to a theme
dark = "wave", -- try "dragon" !
dark = "wave", -- try "dragon" !
light = "lotus"
},
})
end
},
}

View file

@ -0,0 +1,64 @@
return {
{
'mfussenegger/nvim-dap',
-- optional = true,
dependencies = {
'mfussenegger/nvim-dap-python',
},
-- stylua: ignore
-- keys = {
-- { '<leader>dPt', function() require('dap-python').test_method() end, desc = 'Debug Method' },
-- { '<leader>dPc', function() require('dap-python').test_class() end, desc = 'Debug Class' },
-- },
opts = function()
local dap = require('dap')
dap.adapters.cppdbg = {
id = 'cppdbg',
type = 'executable',
command = '/home/cscherr/.local/share/nvim/nvim-dap/debuggers/cpptools/extension/debugAdapters/bin/OpenDebugAD7',
}
dap.configurations.cpp = {
{
name = "Launch file",
type = "cppdbg",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopAtEntry = true,
setupCommands = {
{
text = '-enable-pretty-printing',
description = 'enable pretty printing',
ignoreFailures = false
},
},
},
{
name = 'Attach to gdbserver :1234',
type = 'cppdbg',
request = 'launch',
MIMode = 'gdb',
miDebuggerServerAddress = 'localhost:1234',
miDebuggerPath = '/usr/bin/gdb',
cwd = '${workspaceFolder}',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
setupCommands = {
{
text = '-enable-pretty-printing',
description = 'enable pretty printing',
ignoreFailures = false
},
},
},
}
dap.configurations.c = dap.configurations.cpp
dap.configurations.rust = dap.configurations.cpp
end,
},
}

View file

@ -0,0 +1,42 @@
return {
{
'mfussenegger/nvim-dap',
optional = true,
dependencies = {
'mfussenegger/nvim-dap-python',
},
-- stylua: ignore
-- keys = {
-- { '<leader>dPt', function() require('dap-python').test_method() end, desc = 'Debug Method' },
-- { '<leader>dPc', function() require('dap-python').test_class() end, desc = 'Debug Class' },
-- },
config = function()
local dap = require('dap')
dap.configurations.rust = {
{
-- ... the previous config goes here ...,
initCommands = function()
-- Find out where to look for the pretty printer Python module
local rustc_sysroot = vim.fn.trim(vim.fn.system('rustc --print sysroot'))
local script_import = 'command script import "' .. rustc_sysroot .. '/lib/rustlib/etc/lldb_lookup.py"'
local commands_file = rustc_sysroot .. '/lib/rustlib/etc/lldb_commands'
local commands = {}
local file = io.open(commands_file, 'r')
if file then
for line in file:lines() do
table.insert(commands, line)
end
file:close()
end
table.insert(commands, 1, script_import)
return commands
end,
-- ...,
}
}
end,
},
}

View file

@ -25,7 +25,7 @@ return {
-- stylua: ignore
keys = {
{ '<leader>co', '<cmd>TypescriptOrganizeImports<CR>', desc = 'Organize Imports' },
{ '<leader>cR', '<cmd>TypescriptRenameFile<CR>', desc = 'Rename File' },
{ '<leader>cR', '<cmd>TypescriptRenameFile<CR>', desc = 'Rename File' },
},
settings = {
---@diagnostic disable: missing-fields
@ -93,8 +93,8 @@ return {
-- 💀 Make sure to update this path to point to your installation
args = {
require('mason-registry')
.get_package('js-debug-adapter')
:get_install_path() .. '/js-debug/src/dapDebugServer.js',
.get_package('js-debug-adapter')
:get_install_path() .. '/js-debug/src/dapDebugServer.js',
'${port}',
},
},

View file

@ -4,11 +4,19 @@ return {
event = 'VeryLazy',
opts = {
options = {
-- :h bufferline-configuration
mode = 'tabs',
separator_style = 'slant',
separator_style = {"", ""},
themable = true,
numbers = "ordinal",
show_close_icon = false,
show_buffer_close_icons = false,
diagnostics = false,
diagnostics = true,
indicator = {
-- icon = ' ', -- this should be omitted if indicator style is not 'icon'
-- windows terminal sucks
style = 'none',
},
always_show_bufferline = true,
diagnostics_indicator = function(_, _, diag)
local icons = require('plex.config').icons.diagnostics
@ -39,6 +47,7 @@ return {
text_align = 'center',
},
},
},
},
},

View file

@ -243,8 +243,8 @@ return {
-- Plugins
{ '<localleader>n', plugin_directories, desc = 'Plugins' },
{ '<localleader>k', '<cmd>Telescope thesaurus lookup<CR>', desc = 'Thesaurus' },
{ '<localleader>w', '<cmd>ZkNotes<CR>', desc = 'Zk notes' },
-- { '<localleader>k', '<cmd>Telescope thesaurus lookup<CR>', desc = 'Thesaurus' },
-- { '<localleader>w', '<cmd>ZkNotes<CR>', desc = 'Zk notes' },
{
'<localleader>z',

View file

@ -108,3 +108,89 @@ Theoriephase
weise/!
Weise
merksam
Syscall
Enum
deu
JS
JS
getElementById
MDN
WebDocs
src
txt
ERRNO
vvvv
Rustonomicon
Rustdoc
paragraph
rustc
Klabnik
io
rustbook
Deserialize
deserialisierbaren
SIGTERM
Beendigungsabfrage
SIGKILL
stdout
stderr
Leveln
gedroppt
#ekonstruktor
Dekonstruktor/!
dealloziiert
Dealloziierung
Dealloziieren
vvvv
TODO
vvvv
Structs
nomicon
Wrapperklasse
tx
rx
struct
enum
priorisierbar
仕方がない
Gleichzeitigkeitsmechanismen
ServiceWrapper
Repräsentierung
Docstrings
Backends
dirs
MessageFrame
Addressor
init
Spektralgestalt
CTS
Addressor
Timestamp
str
BASEDIRECTORY
configs
fifo
PKI
secp384r1
Addressors
Keystore
Fifos
SBC
NTSecureCloudSolutions
newtec
loesungen
subfigure
Shield96
ATSAMA5D27
TrustZone
A5
ARMv7
eMMC
MT25QU0512BBB
ATECC608
Rückwärtskompatibilität
tls
opcua
texttt
rfcp
ssl