neovim backlog

This commit is contained in:
Cynthia Foxwell 2022-07-07 09:57:41 -06:00
parent 43ea6d036e
commit a2d62950b0

View file

@ -18,8 +18,9 @@ Plug 'mg979/vim-visual-multi'
"Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
Plug 'rhysd/committia.vim'
Plug 'tpope/vim-sleuth'
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'm-demare/hlargs.nvim'
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'windwp/nvim-ts-autotag'
" interface
Plug 'romgrk/barbar.nvim'
@ -29,9 +30,8 @@ Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'folke/lsp-colors.nvim'
Plug 'nacro90/numb.nvim'
Plug 'xiyaowong/nvim-cursorword'
Plug 'simrat39/symbols-outline.nvim'
Plug 'kevinhwang91/nvim-hlslens'
Plug 'SmiteshP/nvim-gps'
Plug 'simrat39/symbols-outline.nvim'
" language specific
Plug 'sheerun/vim-polyglot'
@ -40,7 +40,6 @@ Plug 'sheerun/vim-polyglot'
Plug 'dense-analysis/ale'
Plug 'neovim/nvim-lspconfig'
Plug 'nvim-lua/completion-nvim'
Plug 'windwp/nvim-ts-autotag'
Plug 'jose-elias-alvarez/null-ls.nvim'
Plug 'hrsh7th/nvim-cmp'
@ -178,29 +177,25 @@ local feedkey = function(key, mode)
end
local mapping = {
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({select = true}),
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({select = true}),
["<Tab>"] = cmp.mapping(function(fallback)
-- This little snippet will confirm with tab, and if no entry is selected, will confirm the first item
if cmp.visible() then
cmp.select_next_item()
elseif vim.fn["vsnip#available"](1) == 1 then
feedkey("<Plug>(vsnip-expand-or-jump)", "")
elseif has_words_before() then
cmp.complete()
local entry = cmp.get_selected_entry()
if not entry then
cmp.select_next_item({ behavior = cmp.SelectBehavior.Select })
else
cmp.confirm()
end
else
fallback() -- The fallback function sends a already mapped key. In this case, it's probably `<Tab>`.
fallback()
end
end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function()
if cmp.visible() then
cmp.select_prev_item()
elseif vim.fn["vsnip#jumpable"](-1) == 1 then
feedkey("<Plug>(vsnip-jump-prev)", "")
end
end, { "i", "s" }),
end, {"i", "s"}),
["<Esc>"] = cmp.mapping.abort(),
}
cmp.setup(
@ -264,14 +259,6 @@ lspconfig.tsserver.setup(
EOF
lua <<EOF
require("nvim-gps").setup(
{
disable_icons = true,
}
)
EOF
" tre
let g:NERDTreeGitStatusIndicatorMapCustom = {
\ 'Modified' :'U',
@ -295,6 +282,7 @@ inoremap <silent> <S-Up> <Esc>:m-2<CR>
inoremap <silent> <S-Down> <Esc>:m+<CR>
nnoremap <silent> <C-b> :NERDTreeToggle<CR>
nnoremap <silent> <C-t> :SymbolsOutline<CR>
":lua require'bufferline.state'.set_offset(require'nvim-tree.view'.win_open() and 30 or 0)<CR>
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
@ -423,7 +411,6 @@ hi StatusLineGitBranch ctermbg=5 ctermfg=0
hi StatusLineChar ctermbg=4 ctermfg=0
hi StatusLineFormat ctermbg=3 ctermfg=0
hi StatusLineFileType ctermbg=7 ctermfg=0
hi StatusLineBreadcrumbs ctermbg=6 ctermfg=0
hi StatusLineEmpty ctermbg=8 ctermfg=2
"call s:h('StatusLineMode', g:amora#palette.bgdark, g:amora#palette.red)
@ -457,10 +444,6 @@ function! GitBranch()
return strlen(l:branch) ? ' ' . l:branch . ' ' : ''
endfunction
function! Breadcrumbs()
return luaeval('require("nvim-gps").is_available()') ? ' '.luaeval('require("nvim-gps").get_location()').' ' : ''
endfunction
set statusline=
set statusline+=%#StatusLineMode#
@ -472,8 +455,6 @@ set statusline+=\ %f
set statusline+=%#StatusLineEmpty#
set statusline+=\ %m%r
set statusline+=%=
set statusline+=%#StatusLineBreadcrumbs#
set statusline+=%{Breadcrumbs()}
set statusline+=%#StatusLineChar#
set statusline+=\ %l,\ %c\
set statusline+=%#StatusLineFormat#