From 52ad9174989fcc8ff5deb0cf80ea80601b0cfbd8 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 20 Mar 2024 14:02:12 +0100 Subject: fixs --- .config/nvim/init.vim | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to '.config/nvim/init.vim') 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 nnoremap xx :TroubleToggle +nnoremap xf :TodoQuickFix " buffers nnoremap ]b :bnext -- cgit v1.2.3-18-g5258