summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/nvim/init.vim2
-rw-r--r--.config/nvim/plug-config/airline.vim12
-rw-r--r--.config/nvim/plug.vim3
-rw-r--r--.config/nvim/settings.vim2
4 files changed, 15 insertions, 4 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 4c7d5c2..e810fe3 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -20,7 +20,7 @@ source /home/jozan/.config/nvim/bindings.vim
source /home/jozan/.config/nvim/sidebars.vim
source /home/jozan/.config/nvim/langs.vim
source /home/jozan/.config/nvim/plug-config/airline.vim
-source /home/jozan/.config/nvim/plug-config/coc.vim
+" source /home/jozan/.config/nvim/plug-config/coc.vim
source /home/jozan/.config/nvim/plug-config/floaterm.vim
source /home/jozan/.config/nvim/plug-config/nerd-commenter.vim
source /home/jozan/.config/nvim/plug-config/org.vim
diff --git a/.config/nvim/plug-config/airline.vim b/.config/nvim/plug-config/airline.vim
index 868d910..7fe7088 100644
--- a/.config/nvim/plug-config/airline.vim
+++ b/.config/nvim/plug-config/airline.vim
@@ -1,6 +1,4 @@
" Airline
-let g:airline#extensions#tabline#enabled = 1
-let g:airline#extensions#tabline#fnamemod = ':t'
let g:airline_detect_modified = 1
let g:airline_detect_paste = 1
let g:airline_detect_crypt = 1
@@ -8,5 +6,15 @@ let g:airline_theme = 'base16_default'
let g:airline_powerline_fonts = 1
let g:airline_symbols_ascii = 1
let g:airline#parts#ffenc#skip_expected_string = 'utf-8[unix]'
+let g:airline#extensions#battery#enabled = 1
+let g:airline#extensions#coc#enabled = 1
+let airline#extensions#coc#warning_symbol = 'W:'
+let airline#extensions#coc#error_symbol = 'E:'
+let g:airline#extensions#tagbar#enabled = 0
+let g:airline#extensions#tabline#fnamemod = ':t'
let g:airline#extensions#cursormode#enabled = 1
+let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#buffer_idx_mode = 1
+" let g:airline#extensions#tabline#left_sep = ' '
+" let g:airline#extensions#tabline#left_alt_sep = '|'
+let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
diff --git a/.config/nvim/plug.vim b/.config/nvim/plug.vim
index 027cae5..543058a 100644
--- a/.config/nvim/plug.vim
+++ b/.config/nvim/plug.vim
@@ -6,6 +6,7 @@ Plug 'jceb/vim-orgmode'
Plug 'jiangmiao/auto-pairs'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
+Plug 'lambdalisue/battery.vim'
Plug 'liuchengxu/vim-which-key'
Plug 'luochen1990/rainbow'
Plug 'mbbill/undotree'
@@ -13,7 +14,7 @@ Plug 'mg979/vim-visual-multi'
Plug 'mhinz/vim-signify'
Plug 'mhinz/vim-startify'
Plug 'morhetz/gruvbox'
-Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
+" Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
Plug 'paretje/nvim-man'
Plug 'preservim/tagbar'
Plug 'preservim/nerdcommenter'
diff --git a/.config/nvim/settings.vim b/.config/nvim/settings.vim
index 4d0894c..1826e2e 100644
--- a/.config/nvim/settings.vim
+++ b/.config/nvim/settings.vim
@@ -30,3 +30,5 @@ let mapleader="\\"
let maplocalleader="\\"
" Disables automatic commenting on newline:
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
+set statusline=...%{battery#component()}...
+let g:battery#update_statusline = 1 " For statusline.