Merge remote-tracking branch 'origin/master' into server

This commit is contained in:
Christoph J. Scherr 2023-09-20 18:49:33 +02:00
commit 54fe9c5a79
10 changed files with 133 additions and 37 deletions

View File

@ -10,6 +10,7 @@ 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' },

View File

@ -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', '<C-j>', function () map('n', '<leader>cj', function ()
vim.diagnostic.goto_next() vim.diagnostic.goto_next()
end, { desc = 'go to next diagnostic'}) end, { desc = 'go to next diagnostic'})
map('n', '<C-k>', function () map('n', '<leader>ck', function ()
vim.diagnostic.goto_prev() vim.diagnostic.goto_prev()
end, { desc = 'go to last diagnostic'}) end, { desc = 'go to last diagnostic'})

View File

@ -198,19 +198,20 @@ 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' } }, { opts.mappings.add, desc = 'Add surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.delete, desc = 'Delete surrounding' }, { opts.mappings.delete, desc = 'Delete surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.find, desc = 'Find right surrounding' }, { opts.mappings.find, desc = 'Find right surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.find_left, desc = 'Find left surrounding' }, { opts.mappings.find_left, desc = 'Find left surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.highlight, desc = 'Highlight surrounding' }, { opts.mappings.highlight, desc = 'Highlight surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.replace, desc = 'Replace surrounding' }, { opts.mappings.replace, desc = 'Replace surrounding', mode = { 'n', 'x', 'v' } },
{ opts.mappings.update_n_lines, desc = 'Update `MiniSurround.config.n_lines`' }, { opts.mappings.update_n_lines, desc = 'Update `MiniSurround.config.n_lines`', mode = { 'n', 'x', 'v' } },
} }
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
@ -220,12 +221,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 = 'ds', -- Delete surrounding delete = '<leader>sd', -- Delete surrounding
find = 'gzf', -- Find surrounding (to the right) find = '<leader>sf', -- Find surrounding (to the right)
find_left = 'gzF', -- Find surrounding (to the left) find_left = '<leader>sF', -- Find surrounding (to the left)
highlight = 'gzh', -- Highlight surrounding highlight = '<leader>sh', -- Highlight surrounding
replace = 'cs', -- Replace surrounding replace = '<leader>cs', -- Replace surrounding
update_n_lines = 'gzn', -- Update `n_lines` update_n_lines = '<leader>su', -- Update `n_lines`
}, },
}, },
}, },

View File

@ -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>wl', '<Plug>(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap to windows' }, { '<leader>wgl', '<Plug>(leap-from-window)', mode = { 'n', 'x', 'o' }, desc = 'Leap to windows' },
}, },
config = function () config = function ()
local leap = require('leap') local leap = require('leap')

View File

@ -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>ir', '<Plug>(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }}, { '<leader>si', '<Plug>(textobj-sandwich-auto-i)', silent = true, mode = { 'x', 'o' }},
{ '<leader>ab', '<Plug>(textobj-sandwich-auto-a)', silent = true, mode = { 'x', 'o' }}, { '<leader>sa', '<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

View File

@ -4,32 +4,49 @@
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,
}, },

View File

@ -0,0 +1,28 @@
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,
},
},
},
},
},
}

View File

@ -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

View File

@ -74,6 +74,9 @@ 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
@ -243,7 +246,13 @@ 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',
}, },

View File

@ -68,3 +68,43 @@ 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