1
0

Compare commits

..

10 Commits

2 changed files with 18 additions and 30 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
@@ -48,32 +48,24 @@ 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>"
let g:coc_snippet_next = '<Tab>' function! CheckBackspace() abort
let g:coc_snippet_prev = '<S-Tab>' let col = col('.') - 1
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
@@ -90,20 +82,11 @@ 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