Strip down vimrc
This commit is contained in:
@@ -33,7 +33,7 @@ vim.api.nvim_set_var("g:completion_matching_smart_case", 1)
|
|||||||
vim.api.nvim_set_var("completion_chain_complete_list", {
|
vim.api.nvim_set_var("completion_chain_complete_list", {
|
||||||
default = {
|
default = {
|
||||||
default = {
|
default = {
|
||||||
{complete_items= {'lsp','snippet', 'path'}},
|
{complete_items= {'lsp','snippet'}},
|
||||||
{mode= '<c-p>'},
|
{mode= '<c-p>'},
|
||||||
{mode= '<c-n>'}},
|
{mode= '<c-n>'}},
|
||||||
}
|
}
|
||||||
|
|||||||
19
files/.vimrc
19
files/.vimrc
@@ -21,7 +21,6 @@ Plug 'jiangmiao/auto-pairs' " pair completion
|
|||||||
Plug 'airblade/vim-gitgutter' " show git changes
|
Plug 'airblade/vim-gitgutter' " show git changes
|
||||||
|
|
||||||
Plug 'itchyny/lightline.vim' " bar
|
Plug 'itchyny/lightline.vim' " bar
|
||||||
Plug 'mengelbrecht/lightline-bufferline' " bufferline
|
|
||||||
Plug 'ryanoasis/vim-devicons' " icons in bar
|
Plug 'ryanoasis/vim-devicons' " icons in bar
|
||||||
|
|
||||||
if executable("fzf") " fzf support and bindings
|
if executable("fzf") " fzf support and bindings
|
||||||
@@ -34,7 +33,6 @@ if has ("nvim")
|
|||||||
Plug 'Shougo/neosnippet.vim' " snippet support
|
Plug 'Shougo/neosnippet.vim' " snippet support
|
||||||
Plug 'Shougo/neosnippet-snippets' " actual snippets
|
Plug 'Shougo/neosnippet-snippets' " actual snippets
|
||||||
Plug 'nvim-lua/completion-nvim' " autocomplete
|
Plug 'nvim-lua/completion-nvim' " autocomplete
|
||||||
Plug 'liuchengxu/vista.vim' " tags
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
@@ -70,7 +68,7 @@ set scrolloff=5 " min lines above or below the cursor
|
|||||||
|
|
||||||
" ============================== Statusline
|
" ============================== Statusline
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set showtabline=2
|
set showtabline=0
|
||||||
|
|
||||||
function! GitStatus()
|
function! GitStatus()
|
||||||
let [a,m,r] = GitGutterGetHunkSummary()
|
let [a,m,r] = GitGutterGetHunkSummary()
|
||||||
@@ -91,18 +89,6 @@ let g:lightline.active = {
|
|||||||
\ 'right': [['lineinfo'], ['percent'], ['gitstatus', 'fileformat', 'fileencoding', 'filetype']]
|
\ 'right': [['lineinfo'], ['percent'], ['gitstatus', 'fileformat', 'fileencoding', 'filetype']]
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
"let g:lightline.subseparator = { 'left': '', 'right': '' }
|
|
||||||
"let g:lightline.separator = { 'left': '', 'right': '' }
|
|
||||||
|
|
||||||
" bufferline
|
|
||||||
let g:lightline.tabline = {'left': [['buffers']]}
|
|
||||||
let g:lightline#bufferline#show_number = 0
|
|
||||||
let g:lightline#bufferline#shorten_path = 0
|
|
||||||
let g:lightline#bufferline#unnamed = '[No Name]'
|
|
||||||
let g:lightline#bufferline#enable_devicons = 1
|
|
||||||
let g:lightline.component_expand = {'buffers': 'lightline#bufferline#buffers'}
|
|
||||||
let g:lightline.component_type = {'buffers': 'tabsel'}
|
|
||||||
|
|
||||||
" ============================== Indents and Whitespaces
|
" ============================== Indents and Whitespaces
|
||||||
set list
|
set list
|
||||||
set listchars=tab:──\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
set listchars=tab:──\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
||||||
@@ -148,9 +134,6 @@ nmap <leader>j :bprev<CR>
|
|||||||
nmap <leader>k :bnext<CR>
|
nmap <leader>k :bnext<CR>
|
||||||
nmap <leader>q :bp <BAR> bd #<CR>
|
nmap <leader>q :bp <BAR> bd #<CR>
|
||||||
|
|
||||||
" vista tags
|
|
||||||
nmap <leader>v :Vista finder fzf:vim_lsp<CR>
|
|
||||||
|
|
||||||
" ============================== Cool NeoVim Shit
|
" ============================== Cool NeoVim Shit
|
||||||
if has ("nvim")
|
if has ("nvim")
|
||||||
" - Startup LSP Servers
|
" - Startup LSP Servers
|
||||||
|
|||||||
Reference in New Issue
Block a user