clipboard

This commit is contained in:
Yannick Reiß 2023-08-13 09:06:22 +02:00
parent 72bdf68ee5
commit b1c4721cd6
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
4 changed files with 62 additions and 59 deletions

View File

@ -38,8 +38,8 @@ snippet #env "Environment" bA
endsnippet endsnippet
snippet code "listing without own config" snippet code "listing without own config"
\\begin{lstlisting} \\begin{lstlisting}${1:[language=${2:C++}]}
$1 $3
\\end{lstlisting}$0 \\end{lstlisting}$0
endsnippet endsnippet

View File

@ -13,11 +13,11 @@ if &shortmess =~ 'A'
else else
set shortmess=aoO set shortmess=aoO
endif endif
badd +86 .config/nvim/viml/legacyconf.vim badd +9 .config/nvim/init.lua
argglobal argglobal
%argdel %argdel
$argadd .config/nvim/viml/legacyconf.vim $argadd .config/nvim/init.lua
edit .config/nvim/viml/legacyconf.vim edit .config/nvim/init.lua
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 = 86 - ((51 * winheight(0) + 26) / 52) let s:l = 9 - ((8 * winheight(0) + 25) / 50)
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 86 keepjumps 9
normal! 033| normal! 021|
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
@ -46,6 +46,7 @@ if filereadable(s:sx)
endif endif
let &g:so = s:so_save | let &g:siso = s:siso_save let &g:so = s:so_save | let &g:siso = s:siso_save
set hlsearch set hlsearch
nohlsearch
doautoall SessionLoadPost doautoall SessionLoadPost
unlet SessionLoad unlet SessionLoad
" vim: set ft=vim : " vim: set ft=vim :

View File

@ -1,46 +1,46 @@
return require('packer').startup(function(use) return require("packer").startup(function(use)
-- Configurations will go here soon -- Configurations will go here soon
use 'wbthomason/packer.nvim' use("wbthomason/packer.nvim")
-- use 'dense-analysis/ale' -- use 'dense-analysis/ale'
use 'preservim/nerdtree' use("preservim/nerdtree")
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 'vim-airline/vim-airline' use("vim-airline/vim-airline")
use { use({
'nvim-treesitter/nvim-treesitter', "nvim-treesitter/nvim-treesitter",
run = function() run = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) local ts_update = require("nvim-treesitter.install").update({ with_sync = true })
ts_update() ts_update()
end, end,
} })
use { 'gelguy/wilder.nvim' } use({ "gelguy/wilder.nvim" })
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'
use 'williamboman/mason.nvim' use("williamboman/mason.nvim")
use 'williamboman/mason-lspconfig.nvim' use("williamboman/mason-lspconfig.nvim")
use 'neovim/nvim-lspconfig' use("neovim/nvim-lspconfig")
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("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")
use 'hrsh7th/cmp-nvim-lsp' use("hrsh7th/cmp-nvim-lsp")
use 'hrsh7th/cmp-nvim-lua' use("hrsh7th/cmp-nvim-lua")
use 'hrsh7th/cmp-nvim-lsp-signature-help' use("hrsh7th/cmp-nvim-lsp-signature-help")
use 'hrsh7th/cmp-path' use("hrsh7th/cmp-path")
use 'hrsh7th/cmp-buffer' use("hrsh7th/cmp-buffer")
use 'hrsh7th/cmp-calc' use("hrsh7th/cmp-calc")
use 'amarakon/nvim-cmp-lua-latex-symbols' use("amarakon/nvim-cmp-lua-latex-symbols")
use 'prabirshrestha/async.vim' use("prabirshrestha/async.vim")
use 'prabirshrestha/vim-lsp' use("prabirshrestha/vim-lsp")
use 'nvim-tree/nvim-web-devicons' use("nvim-tree/nvim-web-devicons")
use {'romgrk/barbar.nvim', wants = 'nvim-web-devicons'} use({ "romgrk/barbar.nvim", wants = "nvim-web-devicons" })
use({"petertriho/cmp-git", requires = "nvim-lua/plenary.nvim"}) use({ "petertriho/cmp-git", requires = "nvim-lua/plenary.nvim" })
use 'quangnguyen30192/cmp-nvim-ultisnips' use("quangnguyen30192/cmp-nvim-ultisnips")
use 'ryanoasis/vim-devicons' use("ryanoasis/vim-devicons")
use 'mhartington/formatter.nvim' use("mhartington/formatter.nvim")
end) end)

View File

@ -36,17 +36,19 @@ function Liten()
set spell spelllang=en_us set spell spelllang=en_us
endfunction endfunction
nnoremap <C-l> :call Liten()<CR> nnoremap <C-e> :call Liten()<CR>
nnoremap <C-m> :call Litde()<CR> nnoremap <C-g> :call Litde()<CR>
" Theme " Theme
" Light
" Dark
nnoremap <M-+> :colo morning<CR> nnoremap <M-+> :colo morning<CR>
nnoremap <M--> :colo ron<CR> nnoremap <M--> :colo ron<CR>
" Fuzzy finder
nnoremap <C-f> :Lines<CR>
" Save using strg+s
nnoremap <C-s> :w<CR>
" autosave for Markdown and Latex " autosave for Markdown and Latex
set updatetime=800 set updatetime=800
autocmd CursorHold *.md w autocmd CursorHold *.md w