1
0

Compare commits

...

20 Commits

Author SHA1 Message Date
2fc078fd3b Remove trailing nonsense. 2025-11-27 16:44:37 +01:00
7439b8f0a7 Run CheckBackspace before expandableOrJumpable(). 2025-11-24 20:23:25 +01:00
6ab3026ae1 Remove temporary storage_file.
This is related to the following issue: https://github.com/neoclide/coc.nvim/issues/5469
2025-11-16 15:44:50 +01:00
28c0e1cc0d Add CoC GoTo code navigation. 2025-11-13 08:20:10 +01:00
f237920714 Add CoC renaming bind. 2025-11-13 08:18:06 +01:00
648c5320a7 Add temporary fix to CoC localstorage error.
Found here: https://github.com/neoclide/coc.nvim/issues/5469
2025-11-13 08:11:47 +01:00
c503a456be Enable parameter/snippet jumping. 2025-11-13 08:10:14 +01:00
7a853c9a5e Set a scrolloff. 2025-11-07 13:55:05 +01:00
c2b00389f8 Switch colorscheme back to solarized8_dark.
It seems to work now... I don't know why.
2025-10-24 08:48:34 +02:00
7d7886e38c Switch colorscheme back to 0x7A69_dark. 2025-10-22 07:59:32 +02:00
34429ea980 Use gopls server for golang. 2025-10-19 19:47:44 +02:00
8ee0514dea FZF plugin: use GFiles command. 2025-10-19 10:33:10 +02:00
bae926b268 Use solarized colorscheme. 2025-10-17 20:25:29 +02:00
9283b8dc89 Add plugin for fzf.
Needed the extra plugin.
2025-10-17 09:10:15 +02:00
b4ca138097 Fix theme 2025-04-02 09:10:43 +02:00
89899b5a1e Theme update. 2025-03-31 15:02:09 +02:00
7ae912c7ad Use system rust-analyzer. 2025-03-26 14:20:41 +01:00
0a47dc9f11 Add transparency plugin. 2024-10-11 12:55:21 +02:00
1f2da48a08 Change copyright name order. 2024-10-11 12:53:19 +02:00
0e872b4c55 Fix path to fzf plugin. 2024-06-11 10:28:56 +02:00
2 changed files with 44 additions and 20 deletions

View File

@@ -1,13 +1,18 @@
{
"languageserver": {
"rust": {
"command": "/home/nicolas/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rust-analyzer",
"command": "/usr/bin/rust-analyzer",
"filetypes": ["rust"],
"rootPatterns": ["Cargo.toml"]
},
"latex": {
"command": "/sbin/texlab",
"filetypes": [ "tex","bib","plaintex","context" ]
},
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod"],
"filetypes": ["go"]
}
}
}

View File

@@ -10,14 +10,16 @@ Plug 'scrooloose/nerdcommenter'
Plug 'javier-lopez/sprunge.vim'
Plug 'vim-scripts/Trailer-Trash'
Plug 'vim-scripts/bad-whitespace'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'aklt/plantuml-syntax'
Plug 'vim-scripts/scons.vim'
Plug 'danro/rename.vim'
Plug 'ciaranm/detectindent'
Plug 'jiangmiao/auto-pairs'
Plug 'antoyo/vim-licenses'
Plug 'lifepillar/vim-solarized8'
Plug 'flazz/vim-colorschemes'
Plug 'xiyaowong/transparent.nvim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
filetype plugin indent on
@@ -46,24 +48,32 @@ set foldmethod=syntax
"set foldlevel=0
"set foldnestmax=1
" Scrolloff
set scrolloff=7
" CoC settings
function! CheckBackspace() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
inoremap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#pum#next(1) :
\ 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()
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
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
function! CheckBackspace() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
let g:coc_snippet_next = '<Tab>'
let g:coc_snippet_prev = '<S-Tab>'
func! s:my_colors_setup() abort
" this is an example
@@ -80,11 +90,20 @@ nmap <silent> [g <Plug>(coc-diagnostic-prev)
nmap <silent> ]g <Plug>(coc-diagnostic-next)
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 on
set background=dark
colorscheme solarized8
highlight Normal ctermbg=none
colorscheme solarized8_dark
""" Project-Specific Settings
@@ -114,7 +133,7 @@ let g:rust_recommended_style = 0 " disable retarded option
""" plugin settings
" airline
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')
let g:airline_symbols = {}
endif
@@ -132,10 +151,10 @@ let g:airline#extensions#whitespace#mixed_indent_algo = 2
let g:airline#extensions#whitespace#checks = [ 'indent', 'long']
" vim-licenses
let g:licenses_copyright_holders_name = 'Ortega Froysa, Nicolás <nicolas@ortegas.org>'
let g:licenses_authors_name = 'Ortega Froysa, Nicolás <nicolas@ortegas.org>'
let g:licenses_copyright_holders_name = 'Nicolás Ortega Froysa <nicolas@ortegas.org>'
let g:licenses_authors_name = 'Nicolás Ortega Froysa <nicolas@ortegas.org>'
let g:licenses_default_command = [ 'Affero' ]
" FZF
nnoremap <leader>f :FZF<CR>
nnoremap <leader>F :tabnew<CR>:FZF<CR>
nnoremap <leader>f :GFiles<CR>
nnoremap <leader>F :tabnew<CR>:GFiles<CR>