mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] Add neovim checks
This commit is contained in:
parent
d68351e2fd
commit
42bff9956b
2 changed files with 46 additions and 21 deletions
|
@ -1,48 +1,57 @@
|
|||
let s:plug = funcref('dotfiles#plugman#register')
|
||||
|
||||
" UI {{{
|
||||
call s:plug('romgrk/barbar.nvim')
|
||||
call s:plug('hoob3rt/lualine.nvim')
|
||||
if has('nvim')
|
||||
call s:plug('romgrk/barbar.nvim')
|
||||
call s:plug('hoob3rt/lualine.nvim')
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" Navigation {{{
|
||||
call s:plug('nvim-telescope/telescope.nvim') " dependencies {{{
|
||||
call s:plug('nvim-lua/plenary.nvim')
|
||||
" }}}
|
||||
if has('nvim')
|
||||
call s:plug('nvim-telescope/telescope.nvim') " dependencies {{{
|
||||
call s:plug('nvim-lua/plenary.nvim')
|
||||
" }}}
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" Files {{{
|
||||
if has('nvim')
|
||||
call s:plug('kyazdani42/nvim-web-devicons')
|
||||
call s:plug('akinsho/nvim-toggleterm.lua')
|
||||
endif
|
||||
call s:plug('preservim/nerdtree')
|
||||
call s:plug('kyazdani42/nvim-web-devicons')
|
||||
call s:plug('akinsho/nvim-toggleterm.lua')
|
||||
call s:plug('antoyo/vim-licenses')
|
||||
" }}}
|
||||
|
||||
" Language specific {{{
|
||||
call s:plug('alaviss/nim.nvim')
|
||||
if has('nvim')
|
||||
call s:plug('xiyaowong/coc-nvim-lua')
|
||||
call s:plug('alaviss/nim.nvim')
|
||||
if has('unix')
|
||||
call s:plug('nvim-neorg/neorg', { 'branch': 'unstable' }) " dependencies {{{
|
||||
call s:plug('nvim-treesitter/nvim-treesitter', { 'do': ':TSUpdate' })
|
||||
" }}}
|
||||
endif
|
||||
endif
|
||||
call s:plug('stevearc/vim-arduino')
|
||||
call s:plug('xiyaowong/coc-nvim-lua')
|
||||
call s:plug('luke-gru/vim-riml')
|
||||
call s:plug('bhurlow/vim-parinfer')
|
||||
call s:plug('vim-scripts/newlisp')
|
||||
if has('unix')
|
||||
call s:plug('nvim-neorg/neorg', { 'branch': 'unstable' }) " dependencies {{{
|
||||
call s:plug('nvim-treesitter/nvim-treesitter', { 'do': ':TSUpdate' })
|
||||
" }}}
|
||||
endif
|
||||
call s:plug('noahfrederick/vim-laravel') " dependencies {{{
|
||||
call s:plug('noahfrederick/vim-composer')
|
||||
call s:plug('tpope/vim-projectionist')
|
||||
call s:plug('tpope/vim-dispatch')
|
||||
" }}}
|
||||
|
||||
" }}}
|
||||
|
||||
" Misc {{{
|
||||
call s:plug('junegunn/vader.vim')
|
||||
call s:plug('andweeb/presence.nvim')
|
||||
call s:plug('wakatime/vim-wakatime')
|
||||
if has('nvim-0.6.0')
|
||||
call s:plug('github/copilot.vim')
|
||||
if has('nvim')
|
||||
call s:plug('andweeb/presence.nvim')
|
||||
if has('nvim-0.6.0')
|
||||
call s:plug('github/copilot.vim')
|
||||
endif
|
||||
endif
|
||||
call s:plug('junegunn/vader.vim')
|
||||
call s:plug('wakatime/vim-wakatime')
|
||||
" }}}
|
||||
|
|
|
@ -6,4 +6,20 @@ let g:vim_ide = 1
|
|||
let g:dotfiles_rainbow_indent_opacity = 0.5
|
||||
|
||||
source <sfile>:p:h/../dmitmel-dotfiles/nvim/init.vim
|
||||
luafile <sfile>:p:h/init.lua
|
||||
|
||||
if has('nvim')
|
||||
luafile <sfile>:p:h/init.lua
|
||||
else
|
||||
set termguicolors
|
||||
endif
|
||||
|
||||
" Arrow key fix kanged from <https://vim.fandom.com/wiki/Fix_arrow_keys_that_display_A_B_C_D_on_remote_shell#Solution_21> {{{
|
||||
if g:HELP_MY_ARROW_KEYS_ARE_BROKEN
|
||||
" the following simply creates an ambiguous mapping so vim fully
|
||||
" processes the escape sequence for terminal keys, see 'ttimeout' for a
|
||||
" rough explanation, this just forces it to work
|
||||
if &term[:4] == "xterm" || &term[:5] == 'screen' || &term[:3] == 'rxvt'
|
||||
inoremap <silent> <C-[>OC <RIGHT>
|
||||
endif
|
||||
endif
|
||||
" }}}
|
||||
|
|
Loading…
Reference in a new issue