Compare commits

...

28 commits

Author SHA1 Message Date
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
6 changed files with 66 additions and 57 deletions

View file

@ -15,8 +15,7 @@ require('lazy').setup(vim.tbl_extend('keep', config.user_lazy_opts(), {
{ import = 'plex.plugins.extras.editor' }, { import = 'plex.plugins.extras.editor' },
{ import = 'plex.plugins.extras.org' }, { import = 'plex.plugins.extras.org' },
{ import = 'plex.plugins.extras.lang.go' }, { import = 'plex.plugins.extras.lang.go' },
{ import = 'plex.plugins.extras.lang.cpp' }, { import = 'plex.plugins.extras.lang.cpp' }, -- also does C and rust
{ import = 'plex.plugins.extras.lang.rust' },
{ import = 'plex.plugins.extras.lang.json' }, { import = 'plex.plugins.extras.lang.json' },
{ import = 'plex.plugins.extras.lang.python' }, { import = 'plex.plugins.extras.lang.python' },
{ import = 'plex.plugins.extras.lang.yaml' }, { import = 'plex.plugins.extras.lang.yaml' },

View file

@ -88,7 +88,7 @@ vim.api.nvim_create_autocmd('BufWritePre', {
-- Disable conceallevel for specific file-types. -- Disable conceallevel for specific file-types.
vim.api.nvim_create_autocmd('FileType', { vim.api.nvim_create_autocmd('FileType', {
group = augroup('fix_conceallevel'), group = augroup('fix_conceallevel'),
pattern = { 'markdown' }, pattern = { 'latex', 'tex' },
callback = function() callback = function()
vim.opt_local.conceallevel = 0 vim.opt_local.conceallevel = 0
end, end,

View file

@ -344,8 +344,8 @@ map('n', '<leader>"', '<cmd>vsplit<CR>', { desc = 'Split window vertically' })
map('n', '<leader>wb', '<cmd>buffer#<CR>', { desc = 'Alternate buffer' }) map('n', '<leader>wb', '<cmd>buffer#<CR>', { desc = 'Alternate buffer' })
map('n', '<leader>wc', '<cmd>close<CR>', { desc = 'Close window' }) map('n', '<leader>wc', '<cmd>close<CR>', { desc = 'Close window' })
map('n', '<leader>wd', '<cmd>bdelete<CR>', { desc = 'Buffer delete' }) map('n', '<leader>wd', '<cmd>bdelete<CR>', { desc = 'Buffer delete' })
map('n', '<leader>wv', '<cmd>split<CR>', { desc = 'Split window horizontally' }) map('n', '<leader>w%', '<cmd>split<CR>', { desc = 'Split window horizontally' })
map('n', '<leader>wg', '<cmd>vsplit<CR>', { desc = 'Split window vertically' }) map('n', '<leader>w"', '<cmd>vsplit<CR>', { desc = 'Split window vertically' })
map('n', '<leader>wt', '<cmd>tabnew<CR>', { desc = 'New tab' }) map('n', '<leader>wt', '<cmd>tabnew<CR>', { desc = 'New tab' })
map('n', '<leader>wtp', '<cmd>tabprevious<CR>', { desc = 'Previous tab' }) map('n', '<leader>wtp', '<cmd>tabprevious<CR>', { desc = 'Previous tab' })
map('n', '<leader>wtn', '<cmd>tabnext<CR>', { desc = 'Next tab' }) map('n', '<leader>wtn', '<cmd>tabnext<CR>', { desc = 'Next tab' })

View file

@ -337,7 +337,7 @@ return {
desc = 'Debugging: Toggle breakpoint', desc = 'Debugging: Toggle breakpoint',
}, },
{ {
'<leader>db', '<leader>dc',
'<cmd>lua require\'dap\'.continue()<CR>', '<cmd>lua require\'dap\'.continue()<CR>',
mode = { 'n', 'x' }, mode = { 'n', 'x' },
desc = 'Debugging: Start or continue debug session', desc = 'Debugging: Start or continue debug session',
@ -355,10 +355,30 @@ return {
desc = 'Debugging: Step over code', desc = 'Debugging: Step over code',
}, },
{ {
'<leader>dm', '<leader>dr',
'<cmd>lua require\'dap\'.repl.open()<CR>', '<cmd>lua require\'dap\'.repl.open()<CR>',
mode = { 'n', 'x' }, mode = { 'n', 'x' },
desc = 'Debugging: Menu', 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,7 +1,7 @@
return { return {
{ {
'mfussenegger/nvim-dap', 'mfussenegger/nvim-dap',
optional = true, -- optional = true,
dependencies = { dependencies = {
'mfussenegger/nvim-dap-python', 'mfussenegger/nvim-dap-python',
}, },
@ -10,65 +10,55 @@ return {
-- { '<leader>dPt', function() require('dap-python').test_method() end, desc = 'Debug Method' }, -- { '<leader>dPt', function() require('dap-python').test_method() end, desc = 'Debug Method' },
-- { '<leader>dPc', function() require('dap-python').test_class() end, desc = 'Debug Class' }, -- { '<leader>dPc', function() require('dap-python').test_class() end, desc = 'Debug Class' },
-- }, -- },
config = function() opts = function()
local dap = require('dap') local dap = require('dap')
dap.adapters.lldb = { dap.adapters.cppdbg = {
id = 'cppdbg',
type = 'executable', type = 'executable',
command = '/usr/bin/lldb-vscode', -- adjust as needed, must be absolute path command = '/home/cscherr/.local/share/nvim/nvim-dap/debuggers/cpptools/extension/debugAdapters/bin/OpenDebugAD7',
name = 'lldb'
}
dap.configurations.c= {
{
name = 'Launch',
type = 'lldb',
request = 'launch',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
args = {},
-- 💀
-- if you change `runInTerminal` to true, you might need to change the yama/ptrace_scope setting:
--
-- echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
--
-- Otherwise you might get the following error:
--
-- Error on launch: Failed to attach to the target process
--
-- But you should be aware of the implications:
-- https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
-- runInTerminal = false,
},
} }
dap.configurations.cpp = { dap.configurations.cpp = {
{ {
name = 'Launch', name = "Launch file",
type = 'lldb', type = "cppdbg",
request = 'launch', request = "launch",
program = function() program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end, end,
cwd = '${workspaceFolder}', cwd = '${workspaceFolder}',
stopOnEntry = false, stopAtEntry = true,
args = {}, 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
},
},
-- 💀
-- if you change `runInTerminal` to true, you might need to change the yama/ptrace_scope setting:
--
-- echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
--
-- Otherwise you might get the following error:
--
-- Error on launch: Failed to attach to the target process
--
-- But you should be aware of the implications:
-- https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
-- runInTerminal = false,
}, },
} }
dap.configurations.c = dap.configurations.cpp
dap.configurations.rust = dap.configurations.cpp
end, end,
}, },
} }

View file

@ -1,7 +1,7 @@
return { return {
{ {
"nvim-neorg/neorg", "nvim-neorg/neorg",
enabled = false, enabled = true,
lazy = true, lazy = true,
build = ":Neorg sync-parsers", build = ":Neorg sync-parsers",
dependencies = { "nvim-lua/plenary.nvim" }, dependencies = { "nvim-lua/plenary.nvim" },