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
snippet code "listing without own config"
\\begin{lstlisting}
$1
\\begin{lstlisting}${1:[language=${2:C++}]}
$3
\\end{lstlisting}$0
endsnippet

View File

@ -13,11 +13,11 @@ if &shortmess =~ 'A'
else
set shortmess=aoO
endif
badd +86 .config/nvim/viml/legacyconf.vim
badd +9 .config/nvim/init.lua
argglobal
%argdel
$argadd .config/nvim/viml/legacyconf.vim
edit .config/nvim/viml/legacyconf.vim
$argadd .config/nvim/init.lua
edit .config/nvim/init.lua
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 = 86 - ((51 * winheight(0) + 26) / 52)
let s:l = 9 - ((8 * winheight(0) + 25) / 50)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 86
normal! 033|
keepjumps 9
normal! 021|
tabnext 1
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf
@ -46,6 +46,7 @@ if filereadable(s:sx)
endif
let &g:so = s:so_save | let &g:siso = s:siso_save
set hlsearch
nohlsearch
doautoall SessionLoadPost
unlet SessionLoad
" 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
use 'wbthomason/packer.nvim'
-- use 'dense-analysis/ale'
use 'preservim/nerdtree'
use 'Xuyuanp/nerdtree-git-plugin'
use 'tpope/vim-surround'
use 'SirVer/ultisnips'
use 'vim-airline/vim-airline'
use {
'nvim-treesitter/nvim-treesitter',
use("wbthomason/packer.nvim")
-- use 'dense-analysis/ale'
use("preservim/nerdtree")
use("Xuyuanp/nerdtree-git-plugin")
use("tpope/vim-surround")
use("SirVer/ultisnips")
use("vim-airline/vim-airline")
use({
"nvim-treesitter/nvim-treesitter",
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()
end,
}
use { 'gelguy/wilder.nvim' }
use { 'junegunn/fzf', run = ":call fzf#install()" }
use 'junegunn/fzf.vim'
-- use 'Valloric/YouCompleteMe'
use 'williamboman/mason.nvim'
use 'williamboman/mason-lspconfig.nvim'
use 'neovim/nvim-lspconfig'
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'
use 'hrsh7th/cmp-nvim-lsp'
use 'hrsh7th/cmp-nvim-lua'
use 'hrsh7th/cmp-nvim-lsp-signature-help'
use 'hrsh7th/cmp-path'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/cmp-calc'
use 'amarakon/nvim-cmp-lua-latex-symbols'
use 'prabirshrestha/async.vim'
use 'prabirshrestha/vim-lsp'
use 'nvim-tree/nvim-web-devicons'
use {'romgrk/barbar.nvim', wants = 'nvim-web-devicons'}
use({"petertriho/cmp-git", requires = "nvim-lua/plenary.nvim"})
use 'quangnguyen30192/cmp-nvim-ultisnips'
use 'ryanoasis/vim-devicons'
use 'mhartington/formatter.nvim'
})
use({ "gelguy/wilder.nvim" })
use({ "junegunn/fzf", run = ":call fzf#install()" })
use("junegunn/fzf.vim")
-- use 'Valloric/YouCompleteMe'
use("williamboman/mason.nvim")
use("williamboman/mason-lspconfig.nvim")
use("neovim/nvim-lspconfig")
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")
use("hrsh7th/cmp-nvim-lsp")
use("hrsh7th/cmp-nvim-lua")
use("hrsh7th/cmp-nvim-lsp-signature-help")
use("hrsh7th/cmp-path")
use("hrsh7th/cmp-buffer")
use("hrsh7th/cmp-calc")
use("amarakon/nvim-cmp-lua-latex-symbols")
use("prabirshrestha/async.vim")
use("prabirshrestha/vim-lsp")
use("nvim-tree/nvim-web-devicons")
use({ "romgrk/barbar.nvim", wants = "nvim-web-devicons" })
use({ "petertriho/cmp-git", requires = "nvim-lua/plenary.nvim" })
use("quangnguyen30192/cmp-nvim-ultisnips")
use("ryanoasis/vim-devicons")
use("mhartington/formatter.nvim")
end)

View File

@ -36,17 +36,19 @@ function Liten()
set spell spelllang=en_us
endfunction
nnoremap <C-l> :call Liten()<CR>
nnoremap <C-m> :call Litde()<CR>
nnoremap <C-e> :call Liten()<CR>
nnoremap <C-g> :call Litde()<CR>
" Theme
" Light
" Dark
nnoremap <M-+> :colo morning<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
set updatetime=800
autocmd CursorHold *.md w