Add floating term and autoclose, remove easycomplete, which caused problems

This commit is contained in:
Yannick Reiß 2024-09-01 07:26:14 +02:00
parent 40561ed88b
commit c40c7c7345
7 changed files with 50 additions and 23 deletions

View File

@ -10,11 +10,14 @@ source ~/.config/vim/plugin_configuration/ale.vim
" NERDTree show hidden files " NERDTree show hidden files
source ~/.config/vim/plugin_configuration/nerdtree.vim source ~/.config/vim/plugin_configuration/nerdtree.vim
" Easycomplete keybindings and tabine config
source ~/.config/vim/plugin_configuration/easycomplete.vim
" Smoothing " Smoothing
source ~/.config/vim/plugin_configuration/smoothing.vim source ~/.config/vim/plugin_configuration/smoothing.vim
" Update of plugins " Update of plugins
source ~/.config/vim/plugin_configuration/packagemanager.vim source ~/.config/vim/plugin_configuration/packagemanager.vim
" FZF window bindings
source ~/.config/vim/plugin_configuration/fzf.vim
" Autoclose
source ~/.config/vim/plugin_configuration/autoclose.vim

View File

@ -1,5 +1,8 @@
" Fix files with prettier, and then ESLint. " Fix files with prettier, and then ESLint.
let b:ale_fixers = {'*': ['remove_trailing_lines', 'trim_whitespace']} let b:ale_fixers = {'*': ['remove_trailing_lines', 'trim_whitespace']}
let g:ale_fix_on_save = 1 let g:ale_fix_on_save = 1
let g:ale_sign_error = '!' let g:ale_sign_error = '>>'
let g:ale_sign_warning = '?' let g:ale_sign_warning = '--'
let g:ale_ada_gpr_project_file = "default.gpr"
let g:ale_ada_adals_project = 'default.gpr'
let g:ale_ada_adals_executable = 'ada_language_server'

View File

@ -0,0 +1,8 @@
let g:AutoPairsFlyMode = 1
let g:AutoPairsShortcutBackInsert = '<M-b>'
let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''", "<!--":"-->"}
" Could battle Ultisnips!
au FileType ada let b:AutoPairs = AutoPairsDefine({'begin' : 'end'})

View File

@ -0,0 +1,7 @@
nnoremap <leader>ff <cmd>Files<cr>
nnoremap <leader>fg <cmd>Lines<cr>
nnoremap <leader>fb <cmd>Buffers<cr>
nnoremap <leader>fs <cmd>Snippets<cr>
nnoremap <leader>fw <cmd>Windows<cr>
nnoremap <c-f> <cmd>BLines<cr>

View File

@ -6,5 +6,7 @@ nnoremap <F8> :TagbarToggle<CR>
nnoremap <C-y> :BufstopFast<CR> nnoremap <C-y> :BufstopFast<CR>
" Set colorscheme " Set colorscheme
colorscheme cyberspace colorscheme default
" Set floating terminal
nnoremap <C-t> :FloatTermNew --height=0.9 --width=0.9 --wintype=float --name=terminal <CR>

View File

@ -1,19 +1,19 @@
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'dense-analysis/ale' Plug 'dense-analysis/ale'
Plug 'preservim/nerdtree' Plug 'preservim/nerdtree'
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'SirVer/ultisnips' Plug 'SirVer/ultisnips'
Plug 'jayli/vim-easycomplete' Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline' " Plug 'mhinz/vim-startify'
" Plug 'mhinz/vim-startify' Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim'
Plug 'junegunn/fzf.vim' Plug 'ryanoasis/vim-devicons'
Plug 'ryanoasis/vim-devicons' Plug 'preservim/tagbar'
Plug 'preservim/tagbar' Plug 'mihaifm/bufstop'
Plug 'mechatroner/rainbow_csv' Plug 'hiroakis/cyberspace.vim' " I'm feeling Cyber XD
Plug 'mihaifm/bufstop' Plug 'tpope/vim-speeddating'
Plug 'hiroakis/cyberspace.vim' " I'm feeling Cyber XD Plug 'vim-autoformat/vim-autoformat'
Plug 'tpope/vim-speeddating' Plug 'voldikss/vim-floaterm'
Plug 'vim-autoformat/vim-autoformat' Plug 'jiangmiao/auto-pairs'
call plug#end() call plug#end()

View File

@ -12,6 +12,10 @@ set cursorline
" colorscheme " colorscheme
colorscheme desert colorscheme desert
" Set leader key
let mapleader = ","
set showcmd
" open new files right/below " open new files right/below
set splitright set splitright
set splitbelow set splitbelow