1
0

Compare commits

..

18 Commits

Author SHA1 Message Date
9f67c16187 Remove trailing nonsense. 2025-11-26 11:04:37 +01:00
740e378a93 Run CheckBackspace before expandableOrJumpable(). 2025-11-24 14:36:55 +01:00
f9315e5aaf Merge branch 'master' into babel 2025-11-18 08:27:24 +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
a242455732 Merge branch 'master' into babel 2025-11-13 08:37:02 +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
7242d257d0 Set a scrolloff. 2025-11-07 13:54:40 +01:00
21d0beb2d9 Merge branch 'master' into babel 2025-10-24 08:49:20 +02: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
1d7d4d0146 Merge branch 'master' into babel 2025-10-22 08:16:59 +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
2 changed files with 36 additions and 14 deletions

View File

@@ -13,6 +13,11 @@
"command": "bash-language-server", "command": "bash-language-server",
"args": ["start"], "args": ["start"],
"filetypes": ["sh","bash"] "filetypes": ["sh","bash"]
},
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod"],
"filetypes": ["go"]
} }
} }
} }

View File

@@ -48,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#refresh() \ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#next()\<CR>" :
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>" \ coc#refresh()
"inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" inoremap <silent><expr> <S-TAB>
"inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" \ coc#pum#visible() ? coc#pum#prev(1) :
nmap <C-a> :CocAction<CR> \ CheckBackspace() ? "\<S-Tab>" :
\ coc#expandableOrJumpable() ? "\<C-r>=coc#snippet#prev()\<CR>" :
\ coc#refresh()
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
@@ -82,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 0x7A69_dark
highlight Normal ctermbg=none highlight Normal ctermbg=none
colorscheme solarized8_dark
""" Project-Specific Settings """ Project-Specific Settings
@@ -139,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>