Compare commits
No commits in common. "54fe9c5a793a2fe57cb99f4c466fe92aa5208c9e" and "8fb1afa21aad5f078797e373ebb64fb506dfe19e" have entirely different histories.
54fe9c5a79
...
8fb1afa21a
10 changed files with 37 additions and 133 deletions
1
init.lua
1
init.lua
|
@ -10,7 +10,6 @@ require('lazy').setup(vim.tbl_extend('keep', config.user_lazy_opts(), {
|
||||||
{ import = 'plex.plugins' },
|
{ import = 'plex.plugins' },
|
||||||
{ import = 'plex.plugins.extras.ui' },
|
{ import = 'plex.plugins.extras.ui' },
|
||||||
{ import = 'plex.plugins.extras.treesitter' },
|
{ import = 'plex.plugins.extras.treesitter' },
|
||||||
{ import = 'plex.plugins.extras.formatting' },
|
|
||||||
{ import = 'plex.plugins.extras.editor' },
|
{ import = 'plex.plugins.extras.editor' },
|
||||||
{ import = 'plex.plugins.extras.lang.json' },
|
{ import = 'plex.plugins.extras.lang.json' },
|
||||||
{ import = 'plex.plugins.extras.lang.python' },
|
{ import = 'plex.plugins.extras.lang.python' },
|
||||||
|
|
|
@ -57,10 +57,10 @@ map('n', '<A-k>', '<cmd>lnext<CR>', { desc = 'Next Loclist Item' })
|
||||||
map('n', '<A-j>', '<cmd>lprev<CR>', { desc = 'Previous Loclist Item' })
|
map('n', '<A-j>', '<cmd>lprev<CR>', { desc = 'Previous Loclist Item' })
|
||||||
|
|
||||||
-- go to next diagnostics entry
|
-- go to next diagnostics entry
|
||||||
map('n', '<leader>cj', function ()
|
map('n', '<C-j>', function ()
|
||||||
vim.diagnostic.goto_next()
|
vim.diagnostic.goto_next()
|
||||||
end, { desc = 'go to next diagnostic'})
|
end, { desc = 'go to next diagnostic'})
|
||||||
map('n', '<leader>ck', function ()
|
map('n', '<C-k>', function ()
|
||||||
vim.diagnostic.goto_prev()
|
vim.diagnostic.goto_prev()
|
||||||
end, { desc = 'go to last diagnostic'})
|
end, { desc = 'go to last diagnostic'})
|
||||||
|
|
||||||
|
|
|
@ -198,20 +198,19 @@ return {
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
{
|
{
|
||||||
'echasnovski/mini.surround',
|
'echasnovski/mini.surround',
|
||||||
enabled = false,
|
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = function(_, keys)
|
keys = function(_, keys)
|
||||||
-- Populate the keys based on the user's options
|
-- Populate the keys based on the user's options
|
||||||
local plugin = require('lazy.core.config').spec.plugins['mini.surround']
|
local plugin = require('lazy.core.config').spec.plugins['mini.surround']
|
||||||
local opts = require('lazy.core.plugin').values(plugin, 'opts', false)
|
local opts = require('lazy.core.plugin').values(plugin, 'opts', false)
|
||||||
local mappings = {
|
local mappings = {
|
||||||
{ opts.mappings.add, desc = 'Add surrounding', mode = { 'n', 'x', 'v' } },
|
{ opts.mappings.add, desc = 'Add surrounding', mode = { 'n', 'x' } },
|
||||||
{ opts.mappings.delete, desc = 'Delete surrounding', mode = { 'n', 'x', 'v' } },
|
{ opts.mappings.delete, desc = 'Delete surrounding' },
|
||||||
{ opts.mappings.find, desc = 'Find right surrounding', mode = { 'n', 'x', 'v' } },
|
{ opts.mappings.find, desc = 'Find right surrounding' },
|
||||||
{ opts.mappings.find_left, desc = 'Find left surrounding', mode = { 'n', 'x', 'v' } },
|
{ opts.mappings.find_left, desc = 'Find left surrounding' },
|
||||||
{ opts.mappings.highlight, desc = 'Highlight surrounding', mode = { 'n', 'x', 'v' } },
|
{ opts.mappings.highlight, desc = 'Highlight surrounding' },
|
||||||
{ opts.mappings.replace, desc = 'Replace surrounding', mode = { 'n', 'x', 'v' } },
|
{ opts.mappings.replace, desc = 'Replace surrounding' },
|
||||||
{ opts.mappings.update_n_lines, desc = 'Update `MiniSurround.config.n_lines`', mode = { 'n', 'x', 'v' } },
|
{ opts.mappings.update_n_lines, desc = 'Update `MiniSurround.config.n_lines`' },
|
||||||
}
|
}
|
||||||
mappings = vim.tbl_filter(function(m)
|
mappings = vim.tbl_filter(function(m)
|
||||||
return m[1] and #m[1] > 0
|
return m[1] and #m[1] > 0
|
||||||
|
@ -221,12 +220,12 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
mappings = {
|
mappings = {
|
||||||
add = '<leader>sa', -- Add surrounding in Normal and Visual modes
|
add = '<leader>sa', -- Add surrounding in Normal and Visual modes
|
||||||
delete = '<leader>sd', -- Delete surrounding
|
delete = 'ds', -- Delete surrounding
|
||||||
find = '<leader>sf', -- Find surrounding (to the right)
|
find = 'gzf', -- Find surrounding (to the right)
|
||||||
find_left = '<leader>sF', -- Find surrounding (to the left)
|
find_left = 'gzF', -- Find surrounding (to the left)
|
||||||
highlight = '<leader>sh', -- Highlight surrounding
|
highlight = 'gzh', -- Highlight surrounding
|
||||||
replace = '<leader>cs', -- Replace surrounding
|
replace = 'cs', -- Replace surrounding
|
||||||
update_n_lines = '<leader>su', -- Update `n_lines`
|
update_n_lines = 'gzn', -- Update `n_lines`
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -191,7 +191,7 @@ return {
|
||||||
keys = {
|
keys = {
|
||||||
{ 'gl', '<Plug>(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' },
|
{ 'gl', '<Plug>(leap-forward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap forward to' },
|
||||||
{ 'gL', '<Plug>(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' },
|
{ 'gL', '<Plug>(leap-backward-to)', mode = { 'n', 'x', 'o' }, desc = 'Leap backward to' },
|
||||||
{ '<leader>wgl', '<Plug>(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap to windows' },
|
{ '<leader>wl', '<Plug>(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap to windows' },
|
||||||
},
|
},
|
||||||
config = function ()
|
config = function ()
|
||||||
local leap = require('leap')
|
local leap = require('leap')
|
||||||
|
|
|
@ -11,8 +11,8 @@ return {
|
||||||
{ '<leader>sc', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)', silent = true },
|
{ '<leader>sc', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-query-a)', silent = true },
|
||||||
{ '<leader>ssc', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)', silent = true },
|
{ '<leader>ssc', '<Plug>(operator-sandwich-replace)<Plug>(operator-sandwich-release-count)<Plug>(textobj-sandwich-auto-a)', silent = true },
|
||||||
{ '<leader>sa', '<Plug>(operator-sandwich-add)', silent = true, mode = { 'n', 'x', 'o' }},
|
{ '<leader>sa', '<Plug>(operator-sandwich-add)', silent = true, mode = { 'n', 'x', 'o' }},
|
||||||
{ '<leader>si', '<Plug>(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }},
|
{ '<leader>ir', '<Plug>(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }},
|
||||||
{ '<leader>sa', '<Plug>(textobj-sandwich-auto-a)', silent = true, mode = { 'x', 'o' }},
|
{ '<leader>ab', '<Plug>(textobj-sandwich-auto-a)', silent = true, mode = { 'x', 'o' }},
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.sandwich_no_default_key_mappings = 1
|
vim.g.sandwich_no_default_key_mappings = 1
|
||||||
|
|
|
@ -4,49 +4,32 @@
|
||||||
return {
|
return {
|
||||||
|
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
'williamboman/mason.nvim',
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
if type(opts.ensure_installed) == "table" then
|
if type(opts.ensure_installed) == 'table' then
|
||||||
table.insert(opts.ensure_installed, "prettierd")
|
table.insert(opts.ensure_installed, 'prettierd')
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"mhartington/formatter.nvim",
|
'mhartington/formatter.nvim',
|
||||||
optional = true,
|
optional = true,
|
||||||
keys = {
|
|
||||||
{ "<Leader>ff", "<cmd>Format<CR>", desc = "Use Formatter" },
|
|
||||||
},
|
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
local filetypes = {
|
local filetypes = {
|
||||||
-- FIXME:add more filetypes
|
-- FIXME:add more filetypes
|
||||||
json = { require("formatter.defaults.prettierd") },
|
json = { require('formatter.defaults.prettierd') },
|
||||||
rust = {
|
|
||||||
rustfmt = function()
|
|
||||||
return {
|
|
||||||
exe = "rustfmt",
|
|
||||||
args = { "--emit=std ut" },
|
|
||||||
stdin = true,
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
["*"] = {
|
|
||||||
-- "formatter.filetypes.any" defines default configurations for any
|
|
||||||
-- filetype
|
|
||||||
require("formatter.filetypes.any").remove_trailing_whitespace,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
opts.filetype = vim.tbl_extend("keep", opts.filetype or {}, filetypes)
|
opts.filetype = vim.tbl_extend('keep', opts.filetype or {}, filetypes)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"jose-elias-alvarez/null-ls.nvim",
|
'jose-elias-alvarez/null-ls.nvim',
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local nls = require("null-ls")
|
local nls = require('null-ls')
|
||||||
table.insert(opts.sources, nls.builtins.formatting.prettierd)
|
table.insert(opts.sources, nls.builtins.formatting.prettierd)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
return {
|
|
||||||
|
|
||||||
{
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
opts = function(_, opts)
|
|
||||||
if type(opts.ensure_installed) == "table" then
|
|
||||||
vim.list_extend(opts.ensure_installed, { "rust" })
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
-- dependencies = { 'b0o/SchemaStore.nvim', version = false },
|
|
||||||
opts = {
|
|
||||||
servers = {
|
|
||||||
texlab = {
|
|
||||||
rootDirectory = ".",
|
|
||||||
auxDirectory = ".",
|
|
||||||
latexFormatter = "latexindent",
|
|
||||||
latexindent = {
|
|
||||||
modifyLineBreaks = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -2,16 +2,16 @@ local function get_header()
|
||||||
-- see https://github.com/MaximilianLloyd/ascii.nvim
|
-- see https://github.com/MaximilianLloyd/ascii.nvim
|
||||||
return {
|
return {
|
||||||
-- The following is a customized version!
|
-- The following is a customized version!
|
||||||
[[ ]],
|
[[ ]],
|
||||||
[[ ]],
|
[[ ██ ]],
|
||||||
[[ █ ████████ █████ ███████ ████ ]],
|
[[ █ ███████ █████ ██ ]],
|
||||||
[[ ███ ██████ █████ █████████ ██████ ]],
|
[[ ███ █████ █████ ]],
|
||||||
[[ █████ ██████████████████████ ████ ███████████████ ]],
|
[[ █████ ███ ███████████████████ ███ ███████████ ]],
|
||||||
[[ ██ ██ █████ █████████████ ████ ████████████████ ]],
|
[[ ██ ██ █ ███ █████████████ █████ ██████████████ ]],
|
||||||
[[ ████ ███████████████ █████████ ████ █████ ██████ ████ ]],
|
[[ ████ ████ ██████████ █████████ █████ █████ ████ █████ ]],
|
||||||
[[ ██████ ██████ ███ █████████ ████ █████ █████ ████ ]],
|
[[ ██████ ██ ███ ███ █████████ █████ █████ ████ █████ ]],
|
||||||
[[ ████████ ███████████████████ ████ ████ █████ ████ ████ ]],
|
[[ ████████ ██████████████████ ████ █████ █████ ████ ██████ ]],
|
||||||
[[ ]],
|
[[ ]],
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -74,9 +74,6 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
texlab = {
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
-- you can do any additional lsp server setup here
|
-- you can do any additional lsp server setup here
|
||||||
-- return true if you don't want this server to be setup with lspconfig
|
-- return true if you don't want this server to be setup with lspconfig
|
||||||
|
@ -246,13 +243,7 @@ return {
|
||||||
build = ':MasonUpdate',
|
build = ':MasonUpdate',
|
||||||
keys = { { '<leader>mm', '<cmd>Mason<cr>', desc = 'Mason' } },
|
keys = { { '<leader>mm', '<cmd>Mason<cr>', desc = 'Mason' } },
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {},
|
||||||
'rust-analyzer',
|
|
||||||
'clangd',
|
|
||||||
'pyright',
|
|
||||||
'bash-language-server',
|
|
||||||
'codelldb',
|
|
||||||
},
|
|
||||||
ui = {
|
ui = {
|
||||||
border = 'rounded',
|
border = 'rounded',
|
||||||
},
|
},
|
||||||
|
|
|
@ -68,43 +68,3 @@ SHA
|
||||||
Etablierungs
|
Etablierungs
|
||||||
the
|
the
|
||||||
strikethrough
|
strikethrough
|
||||||
RustBook
|
|
||||||
IEC62443
|
|
||||||
DHBW
|
|
||||||
gelinked
|
|
||||||
openssl
|
|
||||||
Yocto
|
|
||||||
gls
|
|
||||||
ECC
|
|
||||||
Kryptosystem
|
|
||||||
github
|
|
||||||
sfackler
|
|
||||||
mathmatics
|
|
||||||
www
|
|
||||||
sagemath
|
|
||||||
PlexSheep
|
|
||||||
plexcryptool
|
|
||||||
ECDSA
|
|
||||||
EdDSA
|
|
||||||
Stringverarbeitung
|
|
||||||
#onblocking
|
|
||||||
OOP
|
|
||||||
Fifo
|
|
||||||
serde
|
|
||||||
Deserialisierung
|
|
||||||
serde
|
|
||||||
Skripte
|
|
||||||
mathmatics
|
|
||||||
bbc
|
|
||||||
Kryptographischen/!
|
|
||||||
PyO3
|
|
||||||
#yo3
|
|
||||||
JSON
|
|
||||||
json
|
|
||||||
#yo3
|
|
||||||
Verifikationsmechanismus
|
|
||||||
projektinterne
|
|
||||||
Theoriephase
|
|
||||||
weise/!
|
|
||||||
Weise
|
|
||||||
merksam
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue