summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-07-07 10:55:30 -0500
committerMarc Coquand <marc@mccd.space>2024-07-07 10:55:30 -0500
commit2417190fa224dec06daaec7f9b132a5e89b74e23 (patch)
treefe963d9714b5aef2ba8f122dff8819a069fc3c2c /vim
parent6b4c0820f976fc3a265f6e9e413a6f65f4aa2152 (diff)
downloadopenbsd-2417190fa224dec06daaec7f9b132a5e89b74e23.tar.gz
openbsd-2417190fa224dec06daaec7f9b132a5e89b74e23.tar.bz2
openbsd-2417190fa224dec06daaec7f9b132a5e89b74e23.zip
Netbsd setupnetbsd
Diffstat (limited to '')
-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')