mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
Compare commits
3 Commits
7a552f415c
...
c7704c6bc7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7704c6bc7 | ||
|
|
7c7391a1fc | ||
|
|
9884c07966 |
@@ -47,7 +47,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:airline_nvimlsp_get_line_number(cnt, type) abort
|
function! s:airline_nvimlsp_get_line_number(cnt, type) abort
|
||||||
let severity = a:type == 'Warning' ? 'Warn' : a:type
|
let severity = a:type == 'Warning' ? 'Warn' : a:type
|
||||||
let num = v:lua.vim.diagnostic.get(0, { 'severity': severity })[0].lnum
|
let num = v:lua.vim.diagnostic.get(0, { 'severity': severity })[0].lnum + 1
|
||||||
|
|
||||||
let l:open_lnum_symbol =
|
let l:open_lnum_symbol =
|
||||||
\ get(g:, 'airline#extensions#nvimlsp#open_lnum_symbol', '(L')
|
\ get(g:, 'airline#extensions#nvimlsp#open_lnum_symbol', '(L')
|
||||||
|
|||||||
@@ -138,6 +138,11 @@ function! airline#init#bootstrap()
|
|||||||
\ 'crypt': nr2char(0x1F512),
|
\ 'crypt': nr2char(0x1F512),
|
||||||
\ }, 'keep')
|
\ }, 'keep')
|
||||||
" Note: If "\u2046" (Ɇ) does not show up, try to use "\u2204" (∄)
|
" Note: If "\u2046" (Ɇ) does not show up, try to use "\u2204" (∄)
|
||||||
|
if exists("*setcellwidths")
|
||||||
|
" whitespace char 0x2632 changed to double-width in Unicode 16,
|
||||||
|
" mark it single width again
|
||||||
|
call setcellwidths([[0x2632, 0x2632, 1]])
|
||||||
|
endif
|
||||||
elseif &encoding==?'utf-8' && !get(g:, "airline_symbols_ascii", 0)
|
elseif &encoding==?'utf-8' && !get(g:, "airline_symbols_ascii", 0)
|
||||||
" Symbols for Unicode terminals
|
" Symbols for Unicode terminals
|
||||||
call s:check_defined('g:airline_left_sep', "")
|
call s:check_defined('g:airline_left_sep', "")
|
||||||
@@ -195,7 +200,7 @@ function! airline#init#bootstrap()
|
|||||||
endif
|
endif
|
||||||
call airline#parts#define_raw('path', '%F%m')
|
call airline#parts#define_raw('path', '%F%m')
|
||||||
call airline#parts#define('linenr', {
|
call airline#parts#define('linenr', {
|
||||||
\ 'raw': '%{g:airline_symbols.linenr}%l',
|
\ 'raw': '%{g:airline_symbols.linenr}%2l',
|
||||||
\ 'accent': 'bold'})
|
\ 'accent': 'bold'})
|
||||||
call airline#parts#define('maxlinenr', {
|
call airline#parts#define('maxlinenr', {
|
||||||
\ 'raw': '/%L%{g:airline_symbols.maxlinenr}',
|
\ 'raw': '/%L%{g:airline_symbols.maxlinenr}',
|
||||||
|
|||||||
Reference in New Issue
Block a user