a ton of vim ricing
This commit is contained in:
parent
41448d9ca9
commit
e8618900ab
|
@ -0,0 +1,5 @@
|
||||||
|
" navigate between errors quickly
|
||||||
|
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
|
||||||
|
nmap <silent> <C-j> <Plug>(ale_next_wrap)
|
||||||
|
let g:ale_disable_lsp = 1
|
||||||
|
let g:ale_use_neovim_diagnostics_api = 1
|
|
@ -1,7 +1,3 @@
|
||||||
call plug#begin()
|
|
||||||
Plug 'goolord/alpha-nvim'
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
lua << EOF
|
lua << EOF
|
||||||
require('alpha').setup(require('alpha.themes.startify').config)
|
require('alpha').setup(require('alpha.themes.startify').config)
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"rust-analyzer.server.path": "/usr/bin/rust-analyzer",
|
"rust-analyzer.server.path": "/usr/bin/rust-analyzer",
|
||||||
"suggest.acceptSuggestionOnCommitCharacter": true
|
"suggest.acceptSuggestionOnCommitCharacter": true,
|
||||||
|
"diagnostic.displayByAle": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
inoremap <silent><expr> <cr> coc#pum#visible() ? coc#_select_confirm() : "\<C-g>u\<CR>"
|
||||||
|
inoremap <expr> <Tab> coc#pum#visible() ? coc#pum#next(1) : "\<Tab>"
|
||||||
|
inoremap <expr> <S-Tab> coc#pum#visible() ? coc#pum#prev(1) : "\<S-Tab>"
|
||||||
|
|
||||||
|
|
||||||
|
"CocInstall coc-clangd coc-cmake coc-css coc-floaterm coc-fzf-preview coc-git coc-html coc-json
|
||||||
|
"CocInstall coc-lists coc-lua coc-pyright coc-rust-analyzer coc-sh coc-snippets coc-sql
|
||||||
|
let g:coc_global_extensions = ['coc-json', 'coc-git', 'coc-clangd', 'coc-cmake', 'coc-css', 'coc-floaterm', 'coc-fzf-preview', 'coc-html', 'coc-json', 'coc-lists', 'coc-lua', 'coc-pyright', 'coc-rust-analyzer', 'coc-sh', 'coc-snippets', 'coc-sql', ]
|
|
@ -95,3 +95,6 @@ nnoremap <C-Left> :vertical resize -1<CR>
|
||||||
nnoremap <C-Right> :vertical resize +1<CR>
|
nnoremap <C-Right> :vertical resize +1<CR>
|
||||||
nnoremap <C-Up> :resize -1<CR>
|
nnoremap <C-Up> :resize -1<CR>
|
||||||
nnoremap <C-Down> :resize +1<CR>
|
nnoremap <C-Down> :resize +1<CR>
|
||||||
|
|
||||||
|
" remove extra gutter width for line numbers
|
||||||
|
set numberwidth=5
|
||||||
|
|
|
@ -19,37 +19,24 @@ set completeopt=menuone,noinsert,noselect
|
||||||
" Set completeopt to have a better completion experience"
|
" Set completeopt to have a better completion experience"
|
||||||
set completeopt=menuone,noinsert,noselect
|
set completeopt=menuone,noinsert,noselect
|
||||||
|
|
||||||
|
" load vim plugged stuff
|
||||||
|
runtime plugs.vim
|
||||||
|
|
||||||
" load plugins from extra files
|
" load plugins from extra files
|
||||||
runtime nvim-tree.vim
|
runtime nvim-tree.vim
|
||||||
|
|
||||||
call plug#begin()
|
" plugin specific configs
|
||||||
|
|
||||||
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } }
|
|
||||||
Plug 'jiangmiao/auto-pairs'
|
|
||||||
Plug 'mhinz/vim-startify'
|
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
||||||
Plug 'psliwka/vim-smoothie' " scorll with STRG + d or STRG + u
|
|
||||||
Plug 'romgrk/barbar.nvim' " tabs for buffers
|
|
||||||
Plug 'EdenEast/nightfox.nvim' " Vim-Plug
|
|
||||||
Plug 'numToStr/FTerm.nvim' " floating terminal, toggle with <F11>
|
|
||||||
Plug 'kdheepak/lazygit.nvim'
|
|
||||||
Plug 'nvim-lualine/lualine.nvim' " nicer status line
|
|
||||||
Plug 'goolord/alpha-nvim'
|
|
||||||
Plug 'dhruvasagar/vim-table-mode'
|
|
||||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
|
||||||
Plug 'junegunn/fzf.vim'
|
|
||||||
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
|
|
||||||
Plug 'nanotee/zoxide.vim'
|
|
||||||
Plug 'jpalardy/vim-slime', { 'for': 'python' }
|
|
||||||
Plug 'hanschen/vim-ipython-cell', { 'for': 'python' }
|
|
||||||
runtime markdownpreview.vim
|
runtime markdownpreview.vim
|
||||||
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
" load plugins from extra files
|
" load plugins from extra files
|
||||||
runtime nvim-table-mode.vim
|
runtime nvim-table-mode.vim
|
||||||
|
|
||||||
|
" load tabbar
|
||||||
|
runtime tagbar.vim
|
||||||
|
|
||||||
|
" load ALE (another language server or something that works with COC)
|
||||||
|
runtime ale.vim
|
||||||
|
|
||||||
" no default mappings for vim smoothie (fancy scrolling)
|
" no default mappings for vim smoothie (fancy scrolling)
|
||||||
let g:smoothie_no_default_mappings = 1
|
let g:smoothie_no_default_mappings = 1
|
||||||
|
|
||||||
|
@ -108,7 +95,7 @@ nnoremap <silent> <Space>bw <Cmd>BufferOrderByWindowNumber<CR>
|
||||||
" :BarbarEnable - enables barbar (enabled by default)
|
" :BarbarEnable - enables barbar (enabled by default)
|
||||||
" :BarbarDisable - very bad command, should never be used
|
" :BarbarDisable - very bad command, should never be used
|
||||||
"
|
"
|
||||||
color terafox
|
color nightfox
|
||||||
|
|
||||||
let g:lazygit_floating_window_winblend = 0 " transparency of floating window
|
let g:lazygit_floating_window_winblend = 0 " transparency of floating window
|
||||||
let g:lazygit_floating_window_scaling_factor = 0.9 " scaling factor for floating window
|
let g:lazygit_floating_window_scaling_factor = 0.9 " scaling factor for floating window
|
||||||
|
@ -122,11 +109,8 @@ let g:lazygit_config_file_path = '' " custom config file path
|
||||||
" setup mapping to call :LazyGit
|
" setup mapping to call :LazyGit
|
||||||
nnoremap <silent> <leader>gg :LazyGit<CR>
|
nnoremap <silent> <leader>gg :LazyGit<CR>
|
||||||
|
|
||||||
|
|
||||||
" coc language server configs
|
" coc language server configs
|
||||||
inoremap <silent><expr> <cr> coc#pum#visible() ? coc#_select_confirm() : "\<C-g>u\<CR>"
|
runtime coc.vim
|
||||||
inoremap <expr> <Tab> coc#pum#visible() ? coc#pum#next(1) : "\<Tab>"
|
|
||||||
inoremap <expr> <S-Tab> coc#pum#visible() ? coc#pum#prev(1) : "\<S-Tab>"
|
|
||||||
|
|
||||||
" do these commands manually, they dont like being scripted.
|
" do these commands manually, they dont like being scripted.
|
||||||
"CocInstall coc-clangd coc-cmake coc-css coc-floaterm coc-fzf-preview coc-git coc-html coc-json
|
"CocInstall coc-clangd coc-cmake coc-css coc-floaterm coc-fzf-preview coc-git coc-html coc-json
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
call plug#begin()
|
|
||||||
Plug 'nvim-tree/nvim-tree.lua'
|
|
||||||
Plug 'nvim-tree/nvim-web-devicons'
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
|
|
||||||
" Open NvimTree with f5"
|
" Open NvimTree with f5"
|
||||||
nnoremap <F5> :NvimTreeToggle<CR>
|
nnoremap <F5> :NvimTreeToggle<CR>
|
||||||
|
|
||||||
|
|
||||||
lua << EOF
|
lua << EOF
|
||||||
|
|
||||||
local HEIGHT_RATIO = 0.8 -- You can change this
|
local HEIGHT_RATIO = 0.8 -- You can change this
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
call plug#begin()
|
||||||
|
|
||||||
|
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } }
|
||||||
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
Plug 'mhinz/vim-startify'
|
||||||
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'psliwka/vim-smoothie' " scorll with STRG + d or STRG + u
|
||||||
|
Plug 'romgrk/barbar.nvim' " tabs for buffers
|
||||||
|
Plug 'EdenEast/nightfox.nvim' " Vim-Plug
|
||||||
|
Plug 'numToStr/FTerm.nvim' " floating terminal, toggle with <F11>
|
||||||
|
Plug 'kdheepak/lazygit.nvim'
|
||||||
|
Plug 'nvim-lualine/lualine.nvim' " nicer status line
|
||||||
|
Plug 'goolord/alpha-nvim'
|
||||||
|
Plug 'dhruvasagar/vim-table-mode'
|
||||||
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
|
Plug 'junegunn/fzf.vim'
|
||||||
|
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
|
||||||
|
Plug 'nanotee/zoxide.vim'
|
||||||
|
Plug 'jpalardy/vim-slime', { 'for': 'python' }
|
||||||
|
Plug 'hanschen/vim-ipython-cell', { 'for': 'python' }
|
||||||
|
Plug 'nvim-tree/nvim-tree.lua'
|
||||||
|
Plug 'nvim-tree/nvim-web-devicons'
|
||||||
|
Plug 'rust-lang/rust.vim'
|
||||||
|
Plug 'preservim/tagbar'
|
||||||
|
Plug 'dense-analysis/ale'
|
||||||
|
|
||||||
|
call plug#end()
|
|
@ -0,0 +1,2 @@
|
||||||
|
syntax enable
|
||||||
|
filetype plugin indent on
|
|
@ -0,0 +1 @@
|
||||||
|
nmap <F8> :TagbarToggle<CR>
|
Loading…
Reference in New Issue