set the keywordprg to go doc for go files

This commit is contained in:
2025-11-02 16:46:22 +01:00
parent 3f180cd76b
commit 1dac00f5bd
+2 -1
View File
@@ -4,7 +4,7 @@ autocmd BufWinEnter *.* silent! loadview
autocmd BufWinLeave *.* silent! mkview autocmd BufWinLeave *.* silent! mkview
autocmd FileType * setlocal indentexpr= autocmd FileType * setlocal indentexpr=
autocmd FileType csharp setlocal makeprg=dotnet autocmd FileType csharp setlocal makeprg=dotnet
autocmd FileType go setlocal makeprg=go noexpandtab autocmd FileType go setlocal makeprg=go noexpandtab keywordprg=go\ doc
autocmd FileType make setlocal noexpandtab autocmd FileType make setlocal noexpandtab
autocmd FileType python setlocal makeprg=basedpyright autocmd FileType python setlocal makeprg=basedpyright
autocmd FileType yaml setlocal tabstop=2 autocmd FileType yaml setlocal tabstop=2
@@ -42,6 +42,7 @@ nnoremap ,x <C-x>
set autoindent set autoindent
set cursorline set cursorline
set errorformat^=[----]\ %f:%l:\ %m set errorformat^=[----]\ %f:%l:\ %m
set errorformat^=%f:%l\ %m
set expandtab set expandtab
set exrc set exrc
set guicursor=n-v-c:block-Cursor set guicursor=n-v-c:block-Cursor