summaryrefslogtreecommitdiff
path: root/.config/nvim/init.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.vim')
-rw-r--r--.config/nvim/init.vim21
1 files changed, 16 insertions, 5 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 74227f5..0c32012 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -22,7 +22,7 @@ Plug 'togglebyte/togglerust' " Debug Rust projects
Plug 'chriskempson/base16-vim'
-Plug 'editorconfig/editorconfig-vim'
+" Plug 'editorconfig/editorconfig-vim'
if has('nvim')
Plug 'nvim-telescope/telescope.nvim'
@@ -44,9 +44,6 @@ if has('nvim')
Plug 'folke/lsp-colors.nvim'
Plug 'sindrets/diffview.nvim'
-
- " Used as light theme
- Plug 'yorik1984/newpaper.nvim'
endif
@@ -102,6 +99,9 @@ set noswapfile
set termguicolors
set background=dark
+" copy with `y` to clipboard
+set clipboard+=unnamedplus
+
if has('nvim')
let base16colorspace=256
colorscheme base16-irblack
@@ -109,8 +109,12 @@ if has('nvim')
highlight LineNr guibg=NONE
highlight CursorLine guibg=NONE
highlight CursorLineNr guibg=NONE guifg=YELLOW
- highlight StatusLine guibg=#111111 guifg=YELLOW
+ highlight StatusLine guibg=NONE guifg=YELLOW
highlight StatusLineNC guibg=NONE guifg=#dddddd
+ highlight SignColumn guibg=NONE
+ highlight GitGutterChange guibg=NONE
+ highlight GitGutterAdd guibg=NONE
+ highlight GitGutterDelete guibg=NONE
lua require('git')
let g:coq_settings = { 'auto_start': v:true }
@@ -131,6 +135,12 @@ if has('nvim')
ca dc DiffviewClose
ca dh DiffviewFileHistory
+ " Launch gopls when Go files are in use
+ let g:LanguageClient_serverCommands = {
+ \ 'go': ['gopls']
+ \ }
+ " Run gofmt on save
+
set cursorline " need for Neovim 0.6 for highlight CursorLineNr
else
colorscheme gruvbox
@@ -171,6 +181,7 @@ nnoremap k gk
nnoremap tn :tabnew<cr>
nnoremap <leader>xx :TroubleToggle<cr>
+nnoremap <leader>xf :TodoQuickFix<cr>
" buffers
nnoremap ]b :bnext<CR>