Skip to content

Instantly share code, notes, and snippets.

@MarioCarrion
MarioCarrion / init.vim
Last active July 16, 2023 14:30
Basic nvim configuration
let mapleader = ","
filetype on
filetype indent on
filetype plugin on
set encoding=UTF-8
syntax on
set nocompatible
@MarioCarrion
MarioCarrion / go.vim
Last active November 17, 2023 22:20
Nvim Go configuration
"-- vim-go specific configuration
" run :GoBuild or :GoTestCompile based on the go file
function! s:build_go_files()
let l:file = expand('%')
if l:file =~# '^\f\+_test\.go$'
call go#test#Test(0, 1)
elseif l:file =~# '^\f\+\.go$'
call go#cmd#Build(0)
endif