Skip to content
Discussion options

You must be logged in to vote

Sure thing.

function! StatusLine()
  let left = ['%.20F', '%m', '%r']
  let right = []
  " if using LSP, show LSPisms
  let l:has_lsp = v:false
  for linter in ale#linter#Get(&ft)
    if linter.lsp != ''
      let l:has_lsp = v:true
    endif
  endfor
  if l:has_lsp == v:true
    for item in ['[gd]', '[gD]', '[K]', '<C-K>', '[,/]', '[,ca]']
      call add(right, item)
    endfor
  endif
  if &ft != ''
    call add(right, '[%Y]')
    call add(right, '|')
  endif
  for item in ['%p%%', '|', '%c:%l']
    call add(right, item)
  endfor
  return ' ' . join(left, ' ') . '%=' . join(right, ' ') . ' '
endfunction

set statusline=%!StatusLine()

nmap gd <Plug>(ale_go_to_definition_in_vsplit)
nmap gD 

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@mbeko
Comment options

@RyanSquared
Comment options

Answer selected by w0rp
@w0rp
Comment options

w0rp Mar 19, 2026
Maintainer

@mbeko
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants