rm bufferline
This commit is contained in:
parent
137701d738
commit
e638c1c7ea
@ -127,11 +127,3 @@ end
|
|||||||
|
|
||||||
|
|
||||||
require('telescope').load_extension('fzf')
|
require('telescope').load_extension('fzf')
|
||||||
|
|
||||||
vim.opt.termguicolors = true
|
|
||||||
require("bufferline").setup{
|
|
||||||
options = {
|
|
||||||
mode = "tabs",
|
|
||||||
sort_by = "tabs",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -149,17 +149,16 @@ set ffs=unix,mac
|
|||||||
set encoding=utf8
|
set encoding=utf8
|
||||||
|
|
||||||
" tabs
|
" tabs
|
||||||
nnoremap <silent> <C-l> :BufferLineCycleNext<CR>
|
nnoremap <silent> <C-l> :tabnext<CR>
|
||||||
nnoremap <silent> <C-h> :BufferLineCyclePrev<CR>
|
nnoremap <silent> <C-h> :tabprev<CR>
|
||||||
|
|
||||||
|
|
||||||
" hiden chars
|
" hiden chars
|
||||||
|
|
||||||
nmap <silent> <Leader>eh :set list!<CR>
|
nmap <silent> <Leader>eh :set list!<CR>
|
||||||
set listchars=tab:→\ ,eol:↵,trail:·,extends:↷,precedes:↶
|
set listchars=tab:→\ ,eol:↵,trail:·,extends:↷,precedes:↶
|
||||||
|
|
||||||
|
|
||||||
" Autoload configuration when this file changes ($MYVIMRC)
|
" Autoload configuration when this file changes ($MYVIMRC)
|
||||||
|
|
||||||
autocmd! BufWritePost init.vim source %
|
autocmd! BufWritePost init.vim source %
|
||||||
|
|
||||||
|
|
||||||
@ -200,11 +199,6 @@ call vundle#begin()
|
|||||||
Plugin 'nvim-telescope/telescope-fzf-native.nvim', {'do': 'make'}
|
Plugin 'nvim-telescope/telescope-fzf-native.nvim', {'do': 'make'}
|
||||||
Plugin 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
Plugin 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||||
|
|
||||||
Plugin 'kyazdani42/nvim-web-devicons' " Recommended (for coloured icons)
|
|
||||||
" Plug 'ryanoasis/vim-devicons' Icons without colours
|
|
||||||
Plugin 'akinsho/bufferline.nvim', { 'tag': 'v2.*' }
|
|
||||||
|
|
||||||
|
|
||||||
Plugin 'preservim/nerdtree'
|
Plugin 'preservim/nerdtree'
|
||||||
|
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
@ -217,15 +211,10 @@ set t_Co=256
|
|||||||
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,match,case
|
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,match,case
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
" run file by filetype
|
" run file by filetype
|
||||||
if (&filetype=='python')
|
autocmd BufEnter,BufRead,BufNewFile * if (&filetype=='python') | nnoremap <silent> <Leader>r :tabnew % <CR> :terminal python3 % <CR> :set nocursorline number norelativenumber <CR> G <CR> | endif
|
||||||
nnoremap <silent> <Leader>r :tabnew % <CR> :terminal python3 % <CR> :set nocursorline number norelativenumber <CR> G <CR>
|
autocmd BufEnter,BufRead,BufNewFile * if (&filetype=='go') | nnoremap <silent> <Leader>r :tabnew % <CR> :terminal go run % <CR> :set nocursorline number norelativenumber <CR> G <CR> | endif
|
||||||
elseif (&filetype=='go')
|
autocmd BufEnter,BufRead,BufNewFile * if (&filetype=='vim') | nnoremap <silent> <Leader>r :so % <CR>
|
||||||
nnoremap <silent> <Leader>r :tabnew % <CR> :terminal go run % <CR> :set nocursorline number norelativenumber <CR> G <CR>
|
|
||||||
elseif (&filetype=='vim')
|
|
||||||
nnoremap <silent> <Leader>r :so % <CR>
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user