New Snippets for all filetypes

This commit is contained in:
Yannick Reiß 2023-07-31 18:09:26 +02:00
parent a323c503b5
commit 092db34f94
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
6 changed files with 28 additions and 26 deletions

13
UltiSnips/all.snippets Normal file
View File

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

View File

@ -679,12 +679,3 @@ snippet cotable "create table with code extension" i
\table ${1:row} ${2:column} ${3:Title}
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

View File

@ -97,6 +97,9 @@ require("mason-lspconfig").setup_handlers {
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")
vim.cmd('source ~/.config/nvim/viml/legacyconf.vim')

View File

@ -13,11 +13,11 @@ if &shortmess =~ 'A'
else
set shortmess=aoO
endif
badd +28 init.lua
badd +8 ~/Documents/Programming/LaTeX/La/La.tex
argglobal
%argdel
$argadd init.lua
edit init.lua
$argadd ~/Documents/Programming/LaTeX/La/La.tex
edit ~/Documents/Programming/LaTeX/La/La.tex
argglobal
setlocal fdm=expr
setlocal fde=nvim_treesitter#foldexpr()
@ -27,12 +27,12 @@ setlocal fdl=0
setlocal fml=1
setlocal fdn=20
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
keepjumps exe s:l
normal! zt
keepjumps 27
normal! 0
keepjumps 8
normal! 034|
tabnext 1
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf

View File

@ -14,12 +14,7 @@ return require('packer').startup(function(use)
ts_update()
end,
}
use {
'gelguy/wilder.nvim',
config = function()
-- config goes here
end,
}
use { 'gelguy/wilder.nvim' }
use { 'junegunn/fzf', run = ":call fzf#install()" }
use 'junegunn/fzf.vim'
-- use 'Valloric/YouCompleteMe'

View File

@ -74,11 +74,6 @@ end
time([[try_loadstring definition]], false)
time([[Defining packer_plugins]], true)
_G.packer_plugins = {
YouCompleteMe = {
loaded = true,
path = "/home/nick/.local/share/nvim/site/pack/packer/start/YouCompleteMe",
url = "https://github.com/Valloric/YouCompleteMe"
},
ale = {
loaded = true,
path = "/home/nick/.local/share/nvim/site/pack/packer/start/ale",
@ -254,6 +249,11 @@ _G.packer_plugins = {
loaded = true,
path = "/home/nick/.local/share/nvim/site/pack/packer/start/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"
}
}