Compare commits
31 Commits
0a47dc9f11
...
babel
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f67c16187 | |||
| 740e378a93 | |||
| f9315e5aaf | |||
| 6ab3026ae1 | |||
| a242455732 | |||
| 28c0e1cc0d | |||
| f237920714 | |||
| 648c5320a7 | |||
| c503a456be | |||
| 7a853c9a5e | |||
| 7242d257d0 | |||
| 21d0beb2d9 | |||
| c2b00389f8 | |||
| 1d7d4d0146 | |||
| 7d7886e38c | |||
| 34429ea980 | |||
| 8ee0514dea | |||
| bae926b268 | |||
| 1b4ebe2c7c | |||
| 9283b8dc89 | |||
| e33e6f476d | |||
| 8b66bc02b8 | |||
| c10ba7c8a8 | |||
| b4ca138097 | |||
| 89899b5a1e | |||
| f7a88e4431 | |||
| 7ae912c7ad | |||
| be250e2d9c | |||
| c6d32f2b0f | |||
| 58eea72762 | |||
| d508759e33 |
@@ -1,13 +1,23 @@
|
|||||||
{
|
{
|
||||||
"languageserver": {
|
"languageserver": {
|
||||||
"rust": {
|
"rust": {
|
||||||
"command": "/home/nicolas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rust-analyzer",
|
"command": "/usr/bin/rust-analyzer",
|
||||||
"filetypes": ["rust"],
|
"filetypes": ["rust"],
|
||||||
"rootPatterns": ["Cargo.toml"]
|
"rootPatterns": ["Cargo.toml"]
|
||||||
},
|
},
|
||||||
"latex": {
|
"latex": {
|
||||||
"command": "/sbin/texlab",
|
"command": "/sbin/texlab",
|
||||||
"filetypes": [ "tex","bib","plaintex","context" ]
|
"filetypes": [ "tex","bib","plaintex","context" ]
|
||||||
|
},
|
||||||
|
"bash": {
|
||||||
|
"command": "bash-language-server",
|
||||||
|
"args": ["start"],
|
||||||
|
"filetypes": ["sh","bash"]
|
||||||
|
},
|
||||||
|
"golang": {
|
||||||
|
"command": "gopls",
|
||||||
|
"rootPatterns": ["go.mod"],
|
||||||
|
"filetypes": ["go"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
46
init.vim
46
init.vim
@@ -10,6 +10,7 @@ Plug 'scrooloose/nerdcommenter'
|
|||||||
Plug 'javier-lopez/sprunge.vim'
|
Plug 'javier-lopez/sprunge.vim'
|
||||||
Plug 'vim-scripts/Trailer-Trash'
|
Plug 'vim-scripts/Trailer-Trash'
|
||||||
Plug 'vim-scripts/bad-whitespace'
|
Plug 'vim-scripts/bad-whitespace'
|
||||||
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
Plug 'aklt/plantuml-syntax'
|
Plug 'aklt/plantuml-syntax'
|
||||||
Plug 'vim-scripts/scons.vim'
|
Plug 'vim-scripts/scons.vim'
|
||||||
@@ -17,7 +18,7 @@ Plug 'danro/rename.vim'
|
|||||||
Plug 'ciaranm/detectindent'
|
Plug 'ciaranm/detectindent'
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
Plug 'antoyo/vim-licenses'
|
Plug 'antoyo/vim-licenses'
|
||||||
Plug 'lifepillar/vim-solarized8'
|
Plug 'flazz/vim-colorschemes'
|
||||||
Plug 'xiyaowong/transparent.nvim'
|
Plug 'xiyaowong/transparent.nvim'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
call plug#end()
|
call plug#end()
|
||||||
@@ -29,7 +30,7 @@ filetype plugin on
|
|||||||
" indentation
|
" indentation
|
||||||
set tabstop=4 " tabs only count for 4 spaces
|
set tabstop=4 " tabs only count for 4 spaces
|
||||||
set shiftwidth=4 " when indenting use 4 spaces
|
set shiftwidth=4 " when indenting use 4 spaces
|
||||||
set noexpandtab " use tab characters
|
set expandtab " use tab characters
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
" view
|
" view
|
||||||
@@ -47,24 +48,32 @@ set foldmethod=syntax
|
|||||||
"set foldlevel=0
|
"set foldlevel=0
|
||||||
"set foldnestmax=1
|
"set foldnestmax=1
|
||||||
|
|
||||||
|
" Scrolloff
|
||||||
|
set scrolloff=7
|
||||||
|
|
||||||
" CoC settings
|
" CoC settings
|
||||||
|
function! CheckBackspace() abort
|
||||||
|
let col = col('.') - 1
|
||||||
|
return !col || getline('.')[col - 1] =~# '\s'
|
||||||
|
endfunction
|
||||||
|
|
||||||
inoremap <silent><expr> <TAB>
|
inoremap <silent><expr> <TAB>
|
||||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||||
\ CheckBackspace() ? "\<Tab>" :
|
\ CheckBackspace() ? "\<Tab>" :
|
||||||
|
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
|
||||||
|
\ coc#refresh()
|
||||||
|
inoremap <silent><expr> <S-TAB>
|
||||||
|
\ coc#pum#visible() ? coc#pum#prev(1) :
|
||||||
|
\ CheckBackspace() ? "\<S-Tab>" :
|
||||||
|
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
|
||||||
\ coc#refresh()
|
\ coc#refresh()
|
||||||
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
|
||||||
"inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
|
||||||
"inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
|
||||||
nmap <C-a> :CocAction<CR>
|
|
||||||
let g:coc_disable_startup_warning = 1
|
let g:coc_disable_startup_warning = 1
|
||||||
|
|
||||||
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
|
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
|
||||||
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||||
|
|
||||||
function! CheckBackspace() abort
|
let g:coc_snippet_next = '<Tab>'
|
||||||
let col = col('.') - 1
|
let g:coc_snippet_prev = '<S-Tab>'
|
||||||
return !col || getline('.')[col - 1] =~# '\s'
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
func! s:my_colors_setup() abort
|
func! s:my_colors_setup() abort
|
||||||
" this is an example
|
" this is an example
|
||||||
@@ -81,11 +90,20 @@ nmap <silent> [g <Plug>(coc-diagnostic-prev)
|
|||||||
nmap <silent> ]g <Plug>(coc-diagnostic-next)
|
nmap <silent> ]g <Plug>(coc-diagnostic-next)
|
||||||
nmap <silent> ]f <Plug>(coc-fix-current)
|
nmap <silent> ]f <Plug>(coc-fix-current)
|
||||||
|
|
||||||
|
" Symbol renaming
|
||||||
|
nmap <leader>rn <Plug>(coc-rename)
|
||||||
|
|
||||||
|
" GoTo code navigation
|
||||||
|
nmap <silent><nowait> gd <Plug>(coc-definition)
|
||||||
|
nmap <silent><nowait> gy <Plug>(coc-type-definition)
|
||||||
|
nmap <silent><nowait> gi <Plug>(coc-implementation)
|
||||||
|
nmap <silent><nowait> gr <Plug>(coc-references)
|
||||||
|
|
||||||
" syntax highlighting
|
" syntax highlighting
|
||||||
syntax on
|
syntax on
|
||||||
set background=dark
|
set background=dark
|
||||||
colorscheme solarized8
|
|
||||||
highlight Normal ctermbg=none
|
highlight Normal ctermbg=none
|
||||||
|
colorscheme solarized8_dark
|
||||||
|
|
||||||
""" Project-Specific Settings
|
""" Project-Specific Settings
|
||||||
|
|
||||||
@@ -115,7 +133,7 @@ let g:rust_recommended_style = 0 " disable retarded option
|
|||||||
""" plugin settings
|
""" plugin settings
|
||||||
" airline
|
" airline
|
||||||
let g:airline#extensions#tabline#enabled = 1 " enable tabline
|
let g:airline#extensions#tabline#enabled = 1 " enable tabline
|
||||||
let g:airline_theme='luna'
|
let g:airline_theme='solarized_flood'
|
||||||
if !exists('g:airline_symbols')
|
if !exists('g:airline_symbols')
|
||||||
let g:airline_symbols = {}
|
let g:airline_symbols = {}
|
||||||
endif
|
endif
|
||||||
@@ -138,5 +156,5 @@ let g:licenses_authors_name = 'Nicolás Ortega Froysa <nicolas@ortegas.org>'
|
|||||||
let g:licenses_default_command = [ 'Affero' ]
|
let g:licenses_default_command = [ 'Affero' ]
|
||||||
|
|
||||||
" FZF
|
" FZF
|
||||||
nnoremap <leader>f :FZF<CR>
|
nnoremap <leader>f :GFiles<CR>
|
||||||
nnoremap <leader>F :tabnew<CR>:FZF<CR>
|
nnoremap <leader>F :tabnew<CR>:GFiles<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user