Major update
This commit is contained in:
parent
62dd0a0416
commit
67b83113ae
|
@ -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}) {
|
||||||
|
|
|
@ -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,7 +13,14 @@ else:
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet struct "struct declaration"
|
snippet doxygen "Doxygen comment" b
|
||||||
|
// @name ${1:name}
|
||||||
|
// @return ${2:Return type}
|
||||||
|
// @param ${3:Parameter}
|
||||||
|
// @brief ${4:Description}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet struct "struct declaration"
|
||||||
// $1
|
// $1
|
||||||
// ${2:Description}
|
// ${2:Description}
|
||||||
struct ${1:Name} {
|
struct ${1:Name} {
|
||||||
|
@ -20,7 +29,7 @@ struct ${1:Name} {
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet impl "implement struct"
|
snippet impl "implement struct"
|
||||||
// Implementation of $1
|
// Implementation of $1
|
||||||
// ${2:Desciption}
|
// ${2:Desciption}
|
||||||
impl ${1:struct} {
|
impl ${1:struct} {
|
||||||
|
@ -29,7 +38,7 @@ impl ${1:struct} {
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet for "for-loop"
|
snippet for "for-loop"
|
||||||
for ${1:i} in ${2:$3..$4} {
|
for ${1:i} in ${2:$3..$4} {
|
||||||
$5
|
$5
|
||||||
}$0
|
}$0
|
||||||
|
@ -52,7 +61,7 @@ def create_parameter_placeholders(snip):
|
||||||
|
|
||||||
if placeholders_amount > 0:
|
if placeholders_amount > 0:
|
||||||
anon_snippet_body = anon_snippet_body + ', '
|
anon_snippet_body = anon_snippet_body + ', '
|
||||||
|
|
||||||
anon_snippet_body = anon_snippet_body + ', '.join(['$' + str(i+1) for i in range(placeholders_amount, 2*placeholders_amount)]) + ");"
|
anon_snippet_body = anon_snippet_body + ', '.join(['$' + str(i+1) for i in range(placeholders_amount, 2*placeholders_amount)]) + ");"
|
||||||
|
|
||||||
snip.expand_anon(anon_snippet_body)
|
snip.expand_anon(anon_snippet_body)
|
||||||
|
@ -66,4 +75,3 @@ endsnippet
|
||||||
snippet println "println" A
|
snippet println "println" A
|
||||||
println!("$1");$0
|
println!("$1");$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
5
init.lua
5
init.lua
|
@ -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
|
||||||
|
|
|
@ -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 } },
|
||||||
|
|
|
@ -5,9 +5,9 @@ return require("packer").startup(function(use)
|
||||||
use("Xuyuanp/nerdtree-git-plugin")
|
use("Xuyuanp/nerdtree-git-plugin")
|
||||||
use("tpope/vim-surround")
|
use("tpope/vim-surround")
|
||||||
use("SirVer/ultisnips")
|
use("SirVer/ultisnips")
|
||||||
use("powerline/powerline")
|
use("powerline/powerline")
|
||||||
use("vim-airline/vim-airline")
|
use("vim-airline/vim-airline")
|
||||||
use("vim-airline/vim-airline-themes")
|
use("vim-airline/vim-airline-themes")
|
||||||
use({
|
use({
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
run = function()
|
run = function()
|
||||||
|
@ -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)
|
||||||
|
|
|
@ -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.
|
@ -1,2 +1,11 @@
|
||||||
t0
|
t0
|
||||||
UltiSnipsConfig
|
UltiSnipsConfig
|
||||||
|
yannick
|
||||||
|
CEST
|
||||||
|
Reiss
|
||||||
|
reiss
|
||||||
|
protonmail
|
||||||
|
focusable
|
||||||
|
unmodifiable
|
||||||
|
nvim
|
||||||
|
buf
|
||||||
|
|
Binary file not shown.
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue