NEOVIIIIIM
This commit is contained in:
@@ -19,6 +19,12 @@
|
|||||||
+ vim-plug: `curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
+ vim-plug: `curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim`
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim`
|
||||||
|
|
||||||
|
### Nvim LSP
|
||||||
|
|
||||||
|
+ [Python](https://github.com/palantir/python-language-server)
|
||||||
|
+ [Rust](https://github.com/rust-analyzer/rust-analyzer)
|
||||||
|
+ [TeX](https://github.com/latex-lsp/texlab)
|
||||||
|
|
||||||
## Fonts
|
## Fonts
|
||||||
+ Fira Code Regular Nerd Font Complete Mono.ttf: General
|
+ Fira Code Regular Nerd Font Complete Mono.ttf: General
|
||||||
+ IPAGothic.ttf: Japanese Characters
|
+ IPAGothic.ttf: Japanese Characters
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Marco Thomas
|
name = Marco Thomas
|
||||||
email = mthomas@marcmk.de
|
email = ma_tho@web.de
|
||||||
[alias]
|
[alias]
|
||||||
aa = add .
|
aa = add .
|
||||||
st = status
|
st = status
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
let mapleader = "\<Space>"
|
let mapleader = "\<Space>"
|
||||||
|
|
||||||
" ============================== Plugins
|
" ============================== vim-plug
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
Plug 'altercation/vim-colors-solarized' " Colorscheme
|
Plug 'altercation/vim-colors-solarized' " Colorscheme
|
||||||
@@ -24,6 +24,8 @@ if executable("fzf")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if has ("nvim")
|
if has ("nvim")
|
||||||
|
Plug 'neovim/nvim-lspconfig' " language client
|
||||||
|
Plug 'nvim-lua/completion-nvim' " fancy autocomplete
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
@@ -96,3 +98,29 @@ iab lframe \begin{frame}{}<CR><CR>\end{frame}<UP>
|
|||||||
iab litem \begin{itemize}<CR><CR>\end{itemize}<UP>
|
iab litem \begin{itemize}<CR><CR>\end{itemize}<UP>
|
||||||
iab ltable \begin{tabular}{}<CR>\end{tabular}<UP><RIGHT><RIGHT><RIGHT>
|
iab ltable \begin{tabular}{}<CR>\end{tabular}<UP><RIGHT><RIGHT><RIGHT>
|
||||||
iab lfig \begin{figure}<CR>\includegraphics[width=1\textwidth]{}<CR>\caption{}<CR>\label{figure:}<CR>\end{figure}
|
iab lfig \begin{figure}<CR>\includegraphics[width=1\textwidth]{}<CR>\caption{}<CR>\label{figure:}<CR>\end{figure}
|
||||||
|
|
||||||
|
" ============================== LSP
|
||||||
|
" ++++++++++ completion-nvim Settings
|
||||||
|
if has ("nvim")
|
||||||
|
" Use completion-nvim in every buffer
|
||||||
|
autocmd BufEnter * lua require'completion'.on_attach()
|
||||||
|
|
||||||
|
" Use <Tab> and <S-Tab> to navigate through popup menu
|
||||||
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||||
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||||
|
|
||||||
|
" Set completeopt to have a better completion experience
|
||||||
|
set completeopt=menuone,noinsert,noselect
|
||||||
|
|
||||||
|
" Avoid showing message extra message when using completion
|
||||||
|
set shortmess+=c
|
||||||
|
endif
|
||||||
|
|
||||||
|
" ++++++++++ Enable Language Servers
|
||||||
|
if has ("nvim")
|
||||||
|
lua <<EOF
|
||||||
|
require'nvim_lsp'.pyls.setup{}
|
||||||
|
require'nvim_lsp'.rust_analyzer.setup{}
|
||||||
|
require'nvim_lsp'.texlab.setup{}
|
||||||
|
EOF
|
||||||
|
endif
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ export FZF_DEFAULT_OPTS='--preview="head {}" --layout=reverse --bind=tab:down --
|
|||||||
## fzf Bindings in zsh (C-r and C-t)
|
## fzf Bindings in zsh (C-r and C-t)
|
||||||
if [[ -x $(which fzf 2> /dev/null) ]]
|
if [[ -x $(which fzf 2> /dev/null) ]]
|
||||||
then
|
then
|
||||||
source ~/.vim/bundle/fzf/shell/key-bindings.zsh
|
source ~/.vim/plugged/fzf/shell/key-bindings.zsh
|
||||||
else
|
else
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
fi
|
fi
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 MiB After Width: | Height: | Size: 3.1 MiB |
Reference in New Issue
Block a user