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
/**
* $2 -> $1
* @name $2
* @return $1
* @brief Description:
* ${4: Description}
* @param Parameter:`!p
params = t[3].split(", ")
* @brief ${4: Description}
* `!p
params = t[3].replace(", ", ",").split(",")
rval = ""
for param in params:
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`
*/
${1:int} ${2:MyFunc} (${3:void});
@ -62,16 +61,15 @@ endsnippet
snippet exfun "New Function with Documentation"
/**
* $2 -> $1
* @name $2
* @return $1
* @brief Description:
* ${4: Description}
* @param Parameter:`!p
params = t[3].split(",")
* @brief ${4: Description}
* `!p
params = t[3].replace(", ", ",").split(",")
rval = ""
for param in params:
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`
*/
${1:int} ${2:MyFunc} (${3:void}) {

View File

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

View File

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

View File

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

View File

@ -24,9 +24,9 @@ cmp.setup({
-- mapping
mapping = cmp.mapping.preset.insert({
-- 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
["<C-k>"] = cmp.mapping.select_next_item(),
["<Tab>"] = cmp.mapping.select_next_item(),
-- CTRL+SHIFT+f to scroll backwards in description
["<C-S-f>"] = cmp.mapping.scroll_docs(-4),
-- CTRL+F to scroll forwards in the description
@ -34,7 +34,7 @@ cmp.setup({
-- CTRL+SPACE to bring up completion at current Cursor location
["<C-Space>"] = cmp.mapping.complete(),
-- 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
-- We set the ConfirmBehavior to insert the Selected suggestion
["<CR>"] = cmp.mapping.confirm({
@ -48,8 +48,8 @@ cmp.setup({
{ name = "path" },
{ name = "nvim_lsp", keyword_length = 1 },
{ name = "nvim_lsp_signature_help" },
{ name = "nvim_lua", keyword_length = 2 },
{ name = "buffer", keyword_length = 4 },
{ name = "nvim_lua", keyword_length = 1 },
{ name = "buffer", keyword_length = 2 },
{ name = "ultisnips", keyword_length = 1 },
{ name = "calc" },
{ name = "lua-latex-symbols", option = { cache = true } },

View File

@ -5,9 +5,9 @@ return require("packer").startup(function(use)
use("Xuyuanp/nerdtree-git-plugin")
use("tpope/vim-surround")
use("SirVer/ultisnips")
use("powerline/powerline")
use("powerline/powerline")
use("vim-airline/vim-airline")
use("vim-airline/vim-airline-themes")
use("vim-airline/vim-airline-themes")
use({
"nvim-treesitter/nvim-treesitter",
run = function()
@ -23,7 +23,6 @@ return require("packer").startup(function(use)
use("mfussenegger/nvim-dap")
use("f-person/git-blame.nvim")
use("mfussenegger/nvim-lint")
use("lewis6991/gitsigns.nvim")
use("p00f/nvim-ts-rainbow")
use("cohama/lexima.vim")
use("hrsh7th/nvim-cmp")
@ -47,4 +46,5 @@ return require("packer").startup(function(use)
use("mhartington/formatter.nvim")
use("tzachar/highlight-undo.nvim")
use("folke/tokyonight.nvim")
use("patstockwell/vim-monokai-tasty")
end)

View File

@ -37,3 +37,23 @@ Jacobideterminante
Chlorionen
Coulombkraft
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
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
nnoremap <M-+> :colo morning<CR>
nnoremap <M--> :colo tokyonight-night<CR>
nnoremap <M--> :colo vim-monokai-tasty<CR>
" Fuzzy finder
nnoremap <C-f> :Lines<CR>