aboutsummaryrefslogtreecommitdiff
path: root/Common/vimrc
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2022-06-30 13:31:26 +0200
committerjakobst1n <jakob.stendahl@outlook.com>2022-06-30 13:33:05 +0200
commit64d19effcc7aa1db2f134130484aa68cddd6ecd6 (patch)
tree5ce1fe1484ecc209ad98371162105b8a34092c13 /Common/vimrc
parent0447c58e759df165269ffe9182398881e650d923 (diff)
downloaddotfiles-64d19effcc7aa1db2f134130484aa68cddd6ecd6.tar.gz
dotfiles-64d19effcc7aa1db2f134130484aa68cddd6ecd6.zip
neovim
Diffstat (limited to 'Common/vimrc')
-rw-r--r--Common/vimrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/Common/vimrc b/Common/vimrc
index b2ecbff..098db18 100644
--- a/Common/vimrc
+++ b/Common/vimrc
@@ -184,7 +184,7 @@ set noswapfile
set expandtab
" Be smart when using tabs ;)
-set smarttab
+" set smarttab
" 1 tab == 4 spaces
set shiftwidth=4
@@ -243,7 +243,7 @@ map <leader>tn :tabnew<cr>
map <leader>to :tabonly<cr>
map <leader>tc :tabclose<cr>
map <leader>tm :tabmove
-map <leader>t<leader> :tabnext
+map <leader>t<leader> :tabnext<cr>
" Let 'tl' toggle between this and the last accessed tab
let g:lasttab = 1
@@ -451,7 +451,6 @@ Plug 'junegunn/fzf.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'preservim/nerdcommenter'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
-Plug 'dense-analysis/ale'
Plug 'evanleck/vim-svelte', {'branch': 'main'}
Plug 'preservim/tagbar'
Plug 'evanleck/vim-svelte', {'branch': 'main'}
@@ -460,6 +459,7 @@ Plug 'christoomey/vim-tmux-navigator'
Plug 'tpope/vim-dotenv'
Plug 'kristijanhusak/vim-dadbod-ui'
Plug 'zivyangll/git-blame.vim'
+Plug 'smithbm2316/centerpad.nvim'
"Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'}
"Plug 'clangd/coc-clangd', {'do': 'yarn install --frozen-lockfile'}
@@ -472,6 +472,7 @@ Plug 'zivyangll/git-blame.vim'
"Plug 'fannheyward/coc-pyright', {'do': 'yarn install --frozen-lockfile'}
"Plug 'josa42/coc-sh', {'do': 'yarn install --frozen-lockfile'}
"Plug 'fannheyward/coc-texlab', {'do': 'yarn install --frozen-lockfile'}
+"Plug 'dense-analysis/ale'
call plug#end()
" Setup AirLine
@@ -542,6 +543,8 @@ function! s:show_documentation()
endif
endfunction
+" Attempt to make pyright don't care about git root
+autocmd FileType python let b:coc_root_patterns = ['.git', '.env']
" Highlight the symbol and its references when holding the cursor.
autocmd CursorHold * silent call CocActionAsync('highlight')