1
0

Compare commits

..

21 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
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
1d7d4d0146 Merge branch 'master' into babel 2025-10-22 08:16:59 +02:00
1b4ebe2c7c Merge branch 'master' into babel 2025-10-17 13:16:03 +02:00
e33e6f476d Set colorscheme 2025-04-03 10:31:54 +02:00
8b66bc02b8 Fix theme 2025-04-02 09:11:15 +02:00
c10ba7c8a8 Theme update. 2025-04-02 09:11:15 +02:00
f7a88e4431 Merge branch 'master' into babel 2025-03-31 14:37:41 +02:00
be250e2d9c Merge branch 'master' into babel 2024-10-11 12:56:10 +02:00
c6d32f2b0f Fix path to fzf plugin. 2024-06-11 10:28:07 +02:00
58eea72762 Use spaces (for work). 2024-06-04 11:05:37 +02:00
d508759e33 Enable bash-language-server manually. 2024-06-04 11:05:29 +02:00
2 changed files with 31 additions and 12 deletions

View File

@@ -8,6 +8,11 @@
"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": { "golang": {
"command": "gopls", "command": "gopls",

View File

@@ -30,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
@@ -52,23 +52,28 @@ set foldmethod=syntax
set scrolloff=7 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
@@ -85,6 +90,15 @@ 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