New Snippets for all filetypes
This commit is contained in:
parent
a323c503b5
commit
092db34f94
|
@ -0,0 +1,13 @@
|
||||||
|
snippet cred "My private Credentials"
|
||||||
|
Yannick Reiss <yannick.reiss@protonmail.ch>
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet solve "Solve a python equation"
|
||||||
|
${1:1*1}`!p rv = ""
|
||||||
|
try:
|
||||||
|
rv = eval(t[1])
|
||||||
|
except SyntaxError:
|
||||||
|
rv = "?"
|
||||||
|
snip.rv = f" = {rv}"`
|
||||||
|
endsnippet
|
||||||
|
|
|
@ -679,12 +679,3 @@ snippet cotable "create table with code extension" i
|
||||||
\table ${1:row} ${2:column} ${3:Title}
|
\table ${1:row} ${2:column} ${3:Title}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet solve "Solve a latex equation"
|
|
||||||
${1:1*1}`!p rv = ""
|
|
||||||
try:
|
|
||||||
rv = eval(t[1])
|
|
||||||
except SyntaxError:
|
|
||||||
rv = "?"
|
|
||||||
snip.rv = f" = {rv}"`
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
|
|
3
init.lua
3
init.lua
|
@ -97,6 +97,9 @@ require("mason-lspconfig").setup_handlers {
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local wilder = require('wilder')
|
||||||
|
wilder.setup({modes = {':', '/', '?'}, next_key= '<Tab>', previous_key= '<S-Tab>', accept_key= '<c-k>', reject_key= '<Up>'})
|
||||||
|
|
||||||
require("code-completion")
|
require("code-completion")
|
||||||
|
|
||||||
vim.cmd('source ~/.config/nvim/viml/legacyconf.vim')
|
vim.cmd('source ~/.config/nvim/viml/legacyconf.vim')
|
||||||
|
|
|
@ -13,11 +13,11 @@ if &shortmess =~ 'A'
|
||||||
else
|
else
|
||||||
set shortmess=aoO
|
set shortmess=aoO
|
||||||
endif
|
endif
|
||||||
badd +28 init.lua
|
badd +8 ~/Documents/Programming/LaTeX/La/La.tex
|
||||||
argglobal
|
argglobal
|
||||||
%argdel
|
%argdel
|
||||||
$argadd init.lua
|
$argadd ~/Documents/Programming/LaTeX/La/La.tex
|
||||||
edit init.lua
|
edit ~/Documents/Programming/LaTeX/La/La.tex
|
||||||
argglobal
|
argglobal
|
||||||
setlocal fdm=expr
|
setlocal fdm=expr
|
||||||
setlocal fde=nvim_treesitter#foldexpr()
|
setlocal fde=nvim_treesitter#foldexpr()
|
||||||
|
@ -27,12 +27,12 @@ setlocal fdl=0
|
||||||
setlocal fml=1
|
setlocal fml=1
|
||||||
setlocal fdn=20
|
setlocal fdn=20
|
||||||
setlocal nofen
|
setlocal nofen
|
||||||
let s:l = 27 - ((26 * winheight(0) + 23) / 47)
|
let s:l = 8 - ((7 * winheight(0) + 23) / 47)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
keepjumps exe s:l
|
keepjumps exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
keepjumps 27
|
keepjumps 8
|
||||||
normal! 0
|
normal! 034|
|
||||||
tabnext 1
|
tabnext 1
|
||||||
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
|
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
|
||||||
silent exe 'bwipe ' . s:wipebuf
|
silent exe 'bwipe ' . s:wipebuf
|
||||||
|
|
|
@ -14,12 +14,7 @@ return require('packer').startup(function(use)
|
||||||
ts_update()
|
ts_update()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
use {
|
use { 'gelguy/wilder.nvim' }
|
||||||
'gelguy/wilder.nvim',
|
|
||||||
config = function()
|
|
||||||
-- config goes here
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
use { 'junegunn/fzf', run = ":call fzf#install()" }
|
use { 'junegunn/fzf', run = ":call fzf#install()" }
|
||||||
use 'junegunn/fzf.vim'
|
use 'junegunn/fzf.vim'
|
||||||
-- use 'Valloric/YouCompleteMe'
|
-- use 'Valloric/YouCompleteMe'
|
||||||
|
|
|
@ -74,11 +74,6 @@ end
|
||||||
time([[try_loadstring definition]], false)
|
time([[try_loadstring definition]], false)
|
||||||
time([[Defining packer_plugins]], true)
|
time([[Defining packer_plugins]], true)
|
||||||
_G.packer_plugins = {
|
_G.packer_plugins = {
|
||||||
YouCompleteMe = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/nick/.local/share/nvim/site/pack/packer/start/YouCompleteMe",
|
|
||||||
url = "https://github.com/Valloric/YouCompleteMe"
|
|
||||||
},
|
|
||||||
ale = {
|
ale = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/nick/.local/share/nvim/site/pack/packer/start/ale",
|
path = "/home/nick/.local/share/nvim/site/pack/packer/start/ale",
|
||||||
|
@ -254,6 +249,11 @@ _G.packer_plugins = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/nick/.local/share/nvim/site/pack/packer/start/vim-surround",
|
path = "/home/nick/.local/share/nvim/site/pack/packer/start/vim-surround",
|
||||||
url = "https://github.com/tpope/vim-surround"
|
url = "https://github.com/tpope/vim-surround"
|
||||||
|
},
|
||||||
|
["wilder.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/nick/.local/share/nvim/site/pack/packer/start/wilder.nvim",
|
||||||
|
url = "https://github.com/gelguy/wilder.nvim"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue