Major update

This commit is contained in:
Yannick Reiß 2023-09-16 15:39:27 +02:00
parent 62dd0a0416
commit 67b83113ae
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
11 changed files with 67 additions and 31 deletions

View File

@ -45,16 +45,15 @@ endsnippet
snippet pfun "prototype for function" bA snippet pfun "prototype for function" bA
/** /**
* $2 -> $1 * @name $2
* @return $1 * @return $1
* @brief Description: * @brief ${4: Description}
* ${4: Description} * `!p
* @param Parameter:`!p params = t[3].replace(", ", ",").split(",")
params = t[3].split(", ")
rval = "" rval = ""
for param in params: for param in params:
if len(param.split(' ')) >= 2: if len(param.split(' ')) >= 2:
rval += f"\n *\t\t{param}:\t{t[2]}_{param.split(' ')[1]}" rval += f"\n *\t@param {param}:\t{t[2]}_{param.split(' ')[1]}"
snip.rv = rval` snip.rv = rval`
*/ */
${1:int} ${2:MyFunc} (${3:void}); ${1:int} ${2:MyFunc} (${3:void});
@ -62,16 +61,15 @@ endsnippet
snippet exfun "New Function with Documentation" snippet exfun "New Function with Documentation"
/** /**
* $2 -> $1 * @name $2
* @return $1 * @return $1
* @brief Description: * @brief ${4: Description}
* ${4: Description} * `!p
* @param Parameter:`!p params = t[3].replace(", ", ",").split(",")
params = t[3].split(",")
rval = "" rval = ""
for param in params: for param in params:
if len(param.split(' ')) >= 2: if len(param.split(' ')) >= 2:
rval += f"\n *\t\t{param}:\t{t[2]}_{param.split(' ')[1]}" rval += f"\n *\t@param {param}:\t{t[2]}_{param.split(' ')[1]}"
snip.rv = rval` snip.rv = rval`
*/ */
${1:int} ${2:MyFunc} (${3:void}) { ${1:int} ${2:MyFunc} (${3:void}) {

View File

@ -1,6 +1,8 @@
snippet fn "function declaration" i snippet fn "function declaration" i
// $3 $1 // @name $1
// ${4:Description} // @return $3
// @brief ${4:Description}
// @param $2
fn $1($2) `!p fn $1($2) `!p
if t[3] == "": if t[3] == "":
snip.rv = "" snip.rv = ""
@ -11,6 +13,13 @@ else:
$0 $0
endsnippet endsnippet
snippet doxygen "Doxygen comment" b
// @name ${1:name}
// @return ${2:Return type}
// @param ${3:Parameter}
// @brief ${4:Description}
endsnippet
snippet struct "struct declaration" snippet struct "struct declaration"
// $1 // $1
// ${2:Description} // ${2:Description}
@ -66,4 +75,3 @@ endsnippet
snippet println "println" A snippet println "println" A
println!("$1");$0 println!("$1");$0
endsnippet endsnippet

View File

@ -149,7 +149,7 @@ snippet fquote "Full Quote"
endsnippet endsnippet
snippet href "html reference" snippet href "html reference"
\\href{https://${1:link}}{\\underline{\\textcolor{blue}{${2:Text}}}}$0 \\href{${1:link}}{\\underline{\\textcolor{blue}{${2:Text}}}}$0
endsnippet endsnippet
snippet *_ "Intervall/Isotope-Notation" i snippet *_ "Intervall/Isotope-Notation" i

View File

@ -21,7 +21,8 @@ vim.opt.guifont = "DroidSansMono Nerd Font 11"
-- set color scheme -- set color scheme
vim.opt.termguicolors = true vim.opt.termguicolors = true
vim.cmd([[ vim.cmd([[
colorscheme tokyonight-night let g:vim_monokai_tasty_italic = 1
colorscheme vim-monokai-tasty
]]) ]])
-- vim.cmd('source ~/.config/nvim/viml/plugins.vim') -- vim.cmd('source ~/.config/nvim/viml/plugins.vim')
@ -35,7 +36,7 @@ vim.g.UltiSnipsEditSplit = "vertical"
vim.g.UltiSnipsSnippetDirectories = { "~/.config/nvim/UltiSnips" } vim.g.UltiSnipsSnippetDirectories = { "~/.config/nvim/UltiSnips" }
-- indentLine config -- indentLine config
vim.g.indentLine_char = "" vim.g.indentLine_char = ""
-- NERDTree Config -- NERDTree Config
vim.g.NERDTreeShowHidden = 1 vim.g.NERDTreeShowHidden = 1

View File

@ -24,9 +24,9 @@ cmp.setup({
-- mapping -- mapping
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
-- Shift+TAB to go to the Previous Suggested item -- Shift+TAB to go to the Previous Suggested item
["<C-s-k>"] = cmp.mapping.select_prev_item(), ["<S-Tab>"] = cmp.mapping.select_prev_item(),
-- Tab to go to the next suggestion -- Tab to go to the next suggestion
["<C-k>"] = cmp.mapping.select_next_item(), ["<Tab>"] = cmp.mapping.select_next_item(),
-- CTRL+SHIFT+f to scroll backwards in description -- CTRL+SHIFT+f to scroll backwards in description
["<C-S-f>"] = cmp.mapping.scroll_docs(-4), ["<C-S-f>"] = cmp.mapping.scroll_docs(-4),
-- CTRL+F to scroll forwards in the description -- CTRL+F to scroll forwards in the description
@ -34,7 +34,7 @@ cmp.setup({
-- CTRL+SPACE to bring up completion at current Cursor location -- CTRL+SPACE to bring up completion at current Cursor location
["<C-Space>"] = cmp.mapping.complete(), ["<C-Space>"] = cmp.mapping.complete(),
-- CTRL+e to exit suggestion and close it -- CTRL+e to exit suggestion and close it
["<C-s-CR>"] = cmp.mapping.close(), -- TODO: Search better option ["<C-d>"] = cmp.mapping.close(), -- TODO: Search better option
-- CR (enter or return) to CONFIRM the currently selection suggestion -- CR (enter or return) to CONFIRM the currently selection suggestion
-- We set the ConfirmBehavior to insert the Selected suggestion -- We set the ConfirmBehavior to insert the Selected suggestion
["<CR>"] = cmp.mapping.confirm({ ["<CR>"] = cmp.mapping.confirm({
@ -48,8 +48,8 @@ cmp.setup({
{ name = "path" }, { name = "path" },
{ name = "nvim_lsp", keyword_length = 1 }, { name = "nvim_lsp", keyword_length = 1 },
{ name = "nvim_lsp_signature_help" }, { name = "nvim_lsp_signature_help" },
{ name = "nvim_lua", keyword_length = 2 }, { name = "nvim_lua", keyword_length = 1 },
{ name = "buffer", keyword_length = 4 }, { name = "buffer", keyword_length = 2 },
{ name = "ultisnips", keyword_length = 1 }, { name = "ultisnips", keyword_length = 1 },
{ name = "calc" }, { name = "calc" },
{ name = "lua-latex-symbols", option = { cache = true } }, { name = "lua-latex-symbols", option = { cache = true } },

View File

@ -23,7 +23,6 @@ return require("packer").startup(function(use)
use("mfussenegger/nvim-dap") use("mfussenegger/nvim-dap")
use("f-person/git-blame.nvim") use("f-person/git-blame.nvim")
use("mfussenegger/nvim-lint") use("mfussenegger/nvim-lint")
use("lewis6991/gitsigns.nvim")
use("p00f/nvim-ts-rainbow") use("p00f/nvim-ts-rainbow")
use("cohama/lexima.vim") use("cohama/lexima.vim")
use("hrsh7th/nvim-cmp") use("hrsh7th/nvim-cmp")
@ -47,4 +46,5 @@ return require("packer").startup(function(use)
use("mhartington/formatter.nvim") use("mhartington/formatter.nvim")
use("tzachar/highlight-undo.nvim") use("tzachar/highlight-undo.nvim")
use("folke/tokyonight.nvim") use("folke/tokyonight.nvim")
use("patstockwell/vim-monokai-tasty")
end) end)

View File

@ -37,3 +37,23 @@ Jacobideterminante
Chlorionen Chlorionen
Coulombkraft Coulombkraft
Coulomb'schen Coulomb'schen
Youtube
Whiteboard
DuckDuckGo
duckduckgo
Ecosia
ecosia
DOSB
https
www
org
search
method
index
com
Scherenschlag
ausschwimmen
Gewöhnungsübung
Scherenschlages
Theorieteil
Whatsapp

Binary file not shown.

View File

@ -1,2 +1,11 @@
t0 t0
UltiSnipsConfig UltiSnipsConfig
yannick
CEST
Reiss
reiss
protonmail
focusable
unmodifiable
nvim
buf

Binary file not shown.

View File

@ -38,7 +38,7 @@ nnoremap <C-g> :call Litde()<CR>
" Theme " Theme
nnoremap <M-+> :colo morning<CR> nnoremap <M-+> :colo morning<CR>
nnoremap <M--> :colo tokyonight-night<CR> nnoremap <M--> :colo vim-monokai-tasty<CR>
" Fuzzy finder " Fuzzy finder
nnoremap <C-f> :Lines<CR> nnoremap <C-f> :Lines<CR>