summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/vimrc b/vimrc
index fe2691e..52b0a06 100644
--- a/vimrc
+++ b/vimrc
@@ -10,16 +10,20 @@ set nobackup
set autoindent
set smartindent
set cindent
+set backspace=2
" Theme
syntax on
set background=light
set rnu
+set termguicolors
colorscheme quiet
set incsearch
set matchpairs+=<:>
-hi Normal ctermfg=black ctermbg=white
+set t_Co=256
+hi Normal guifg=black guibg=#FEFFFA
"hi Keyword ctermfg=black cterm=bold
+set tgc
hi SpellBad term=reverse cterm=underline ctermfg=124 ctermbg=white
hi SpellCap term=reverse cterm=underline ctermfg=25 ctermbg=white
hi SpellRare term=reverse cterm=underline ctermfg=30 ctermbg=white
@@ -112,18 +116,18 @@ if exists('g:loaded_lsp')
call LspAddServer([#{
\ name: 'golang',
\ filetype: ['go', 'gomod', 'gowork', 'gohtml'],
- \ path: '/usr/bin/gopls',
+ \ path: 'gopls',
\ args: ['serve'],
\ syncInit: v:true
\ }])
end
autocmd Filetype go set makeprg=go\ build
-autocmd Filetype go autocmd BufWritePre <buffer> :LspFormat
+"autocmd Filetype go autocmd BufWritePre <buffer> :LspFormat
au BufRead,BufNewFile *.tmpl set filetype=gohtml
autocmd Filetype gohtml setlocal tabstop=2
-autocmd Filetype gohtml setlocal formatprg=djlint\ --profile=golang\ --reformat\ -
+" autocmd Filetype gohtml setlocal formatprg=djlint\ --profile=golang\ --reformat\ -
" Nix
if exists('g:loaded_lsp')