fix changes for vim-plug installation
This commit is contained in:
@@ -1,11 +1,6 @@
|
|||||||
source $HOME/.config/nvim/templates/general.vim
|
|
||||||
source $HOME/.config/nvim/templates/treesitter.vim
|
|
||||||
source $HOME/.config/nvim/templates/lsp_keymap.vim
|
|
||||||
|
|
||||||
" Theme
|
|
||||||
colorscheme OceanicNext
|
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
source $HOME/.config/nvim/templates/general_plugs.vim
|
||||||
" LSP resources
|
" LSP resources
|
||||||
Plug 'neovim/nvim-lspconfig'
|
Plug 'neovim/nvim-lspconfig'
|
||||||
Plug 'williamboman/nvim-lsp-installer'
|
Plug 'williamboman/nvim-lsp-installer'
|
||||||
@@ -33,6 +28,12 @@ Plug 'hrsh7th/vim-vsnip'
|
|||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
source $HOME/.config/nvim/templates/general.vim
|
||||||
|
source $HOME/.config/nvim/templates/lsp_keymap.vim
|
||||||
|
|
||||||
|
" Theme
|
||||||
|
colorscheme OceanicNext
|
||||||
|
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
-- Setup nvim-cmp.
|
-- Setup nvim-cmp.
|
||||||
local cmp = require'cmp'
|
local cmp = require'cmp'
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
source $HOME/.config/nvim/templates/general.vim
|
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
source $HOME/.config/nvim/templates/general_plugs.vim
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
source $HOME/.config/nvim/templates/general.vim
|
||||||
|
|
||||||
|
" Theme
|
||||||
|
colorscheme gruvbox
|
||||||
|
|
||||||
" Use tab for trigger completion with characters ahead and navigate.
|
" Use tab for trigger completion with characters ahead and navigate.
|
||||||
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
||||||
" other plugin before putting this into your config.
|
" other plugin before putting this into your config.
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
source $HOME/.config/nvim/templates/general.vim
|
|
||||||
source $HOME/.config/nvim/templates/treesitter.vim
|
|
||||||
source $HOME/.config/nvim/templates/lsp_keymap.vim
|
|
||||||
|
|
||||||
" Theme
|
|
||||||
set background=dark
|
|
||||||
colorscheme onedark
|
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
source $HOME/.config/nvim/templates/general_plugs.vim
|
||||||
" LSP resources
|
" LSP resources
|
||||||
Plug 'neovim/nvim-lspconfig'
|
Plug 'neovim/nvim-lspconfig'
|
||||||
Plug 'williamboman/nvim-lsp-installer'
|
Plug 'williamboman/nvim-lsp-installer'
|
||||||
@@ -14,8 +7,15 @@ Plug 'ms-jpq/coq_nvim', {'branch': 'coq'}
|
|||||||
Plug 'ms-jpq/coq.artifacts', {'branch': 'artifacts'}
|
Plug 'ms-jpq/coq.artifacts', {'branch': 'artifacts'}
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
source $HOME/.config/nvim/templates/general.vim
|
||||||
|
source $HOME/.config/nvim/templates/lsp_keymap.vim
|
||||||
|
|
||||||
set omnifunc=v:lua.vim.lsp.omnifunc
|
set omnifunc=v:lua.vim.lsp.omnifunc
|
||||||
|
|
||||||
|
" Theme
|
||||||
|
set background=dark
|
||||||
|
colorscheme onedark
|
||||||
|
|
||||||
lua << EOF
|
lua << EOF
|
||||||
vim.g.coq_settings = {
|
vim.g.coq_settings = {
|
||||||
auto_start = 'shut-up',
|
auto_start = 'shut-up',
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
|
call plug#begin()
|
||||||
source $HOME/.config/nvim/templates/general.vim
|
source $HOME/.config/nvim/templates/general.vim
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
"Theme
|
"Theme
|
||||||
colorscheme gruvbox
|
colorscheme gruvbox
|
||||||
|
|||||||
@@ -11,41 +11,15 @@ set completeopt=menu,menuone,noselect
|
|||||||
" Set leader to comma
|
" Set leader to comma
|
||||||
let mapleader=","
|
let mapleader=","
|
||||||
|
|
||||||
call plug#begin()
|
|
||||||
" Color Schemes
|
|
||||||
Plug 'rafi/awesome-vim-colorschemes'
|
|
||||||
Plug 'mhartington/oceanic-next'
|
|
||||||
Plug 'morhetz/gruvbox'
|
|
||||||
Plug 'joshdick/onedark.vim'
|
|
||||||
|
|
||||||
" Navigation
|
|
||||||
Plug 'tpope/vim-commentary'
|
|
||||||
Plug 'tpope/vim-surround'
|
|
||||||
|
|
||||||
" Commands
|
|
||||||
Plug 'vim-test/vim-test'
|
|
||||||
Plug 'skywind3000/asyncrun.vim'
|
|
||||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
|
||||||
Plug 'junegunn/fzf.vim'
|
|
||||||
|
|
||||||
" Extra Appearance Features
|
|
||||||
Plug 'airblade/vim-gitgutter'
|
|
||||||
Plug 'tpope/vim-fugitive'
|
|
||||||
Plug 'mhinz/vim-signify'
|
|
||||||
Plug 'vim-airline/vim-airline'
|
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
|
||||||
|
|
||||||
" File Navigation
|
|
||||||
Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': 'python3 -m chadtree deps'}
|
|
||||||
" Vista Sidebar
|
|
||||||
Plug 'liuchengxu/vista.vim'
|
|
||||||
" Syntax Highlighting
|
|
||||||
Plug 'sheerun/vim-polyglot'
|
|
||||||
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
" Set to open tree
|
" Set to open tree
|
||||||
nnoremap <leader><space> <cmd>CHADopen<cr>
|
nnoremap <leader><space> <cmd>NERDTreeToggle<cr>
|
||||||
|
" Start NERDTree when Vim is started without file arguments.
|
||||||
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
|
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
|
||||||
|
" Close the tab if NERDTree is the only window remaining in it.
|
||||||
|
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||||
|
" Exit Vim if NERDTree is the only window remaining in the only tab.
|
||||||
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||||
|
|
||||||
" Set to open Vista Sidebar
|
" Set to open Vista Sidebar
|
||||||
nnoremap ;<space> <cmd>Vista!!<cr>
|
nnoremap ;<space> <cmd>Vista!!<cr>
|
||||||
@@ -151,5 +125,25 @@ endif
|
|||||||
" Set termdebug
|
" Set termdebug
|
||||||
let g:termdebug_wide=1
|
let g:termdebug_wide=1
|
||||||
|
|
||||||
|
lua << EOF
|
||||||
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
ensure_installed = { "zig", "python", "c", "bash", "json" }, -- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
||||||
|
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
|
||||||
|
ignore_install = { "javascript" }, -- List of parsers to ignore installing
|
||||||
|
highlight = {
|
||||||
|
enable = true, -- false will disable the whole extension
|
||||||
|
-- disable = { "c", "rust" }, -- list of language that will be disabled
|
||||||
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||||
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||||
|
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||||
|
-- Instead of true it can also be a list of languages
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
nnoremap <D-v> "+p
|
EOF
|
||||||
|
|
||||||
|
" Specific Local config
|
||||||
|
if filereadable($HOME . "/.config/nvim/templates/general.vim.local")
|
||||||
|
source ~/.config/nvim/templates/general.vim.local
|
||||||
|
endif
|
||||||
|
|||||||
30
dot_config/nvim/templates/general_plugs.vim
Normal file
30
dot_config/nvim/templates/general_plugs.vim
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
" Color Schemes
|
||||||
|
Plug 'rafi/awesome-vim-colorschemes'
|
||||||
|
Plug 'mhartington/oceanic-next'
|
||||||
|
Plug 'morhetz/gruvbox'
|
||||||
|
Plug 'joshdick/onedark.vim'
|
||||||
|
|
||||||
|
" Navigation
|
||||||
|
Plug 'tpope/vim-commentary'
|
||||||
|
Plug 'tpope/vim-surround'
|
||||||
|
|
||||||
|
" Commands
|
||||||
|
Plug 'vim-test/vim-test'
|
||||||
|
Plug 'skywind3000/asyncrun.vim'
|
||||||
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
|
Plug 'junegunn/fzf.vim'
|
||||||
|
|
||||||
|
" Extra Appearance Features
|
||||||
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
Plug 'tpope/vim-fugitive'
|
||||||
|
Plug 'mhinz/vim-signify'
|
||||||
|
Plug 'vim-airline/vim-airline'
|
||||||
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
|
|
||||||
|
" File Navigation
|
||||||
|
Plug 'preservim/nerdtree'
|
||||||
|
" Vista Sidebar
|
||||||
|
Plug 'liuchengxu/vista.vim'
|
||||||
|
" Syntax Highlighting
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " We recommend updating the parsers on update
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
call plug#begin()
|
|
||||||
" Highlighting
|
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " We recommend updating the parsers on update
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
lua << EOF
|
|
||||||
|
|
||||||
require'nvim-treesitter.configs'.setup {
|
|
||||||
ensure_installed = { "zig", "python", "c", "bash", "json" }, -- one of "all", "maintained" (parsers with maintainers), or a list of languages
|
|
||||||
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
|
|
||||||
ignore_install = { "javascript" }, -- List of parsers to ignore installing
|
|
||||||
highlight = {
|
|
||||||
enable = true, -- false will disable the whole extension
|
|
||||||
-- disable = { "c", "rust" }, -- list of language that will be disabled
|
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
|
||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
|
||||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
||||||
-- Instead of true it can also be a list of languages
|
|
||||||
additional_vim_regex_highlighting = false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
EOF
|
|
||||||
Reference in New Issue
Block a user