Created
February 19, 2024 05:50
-
-
Save leo-aa88/9aaabb730e4e7be18e1b8035a2246838 to your computer and use it in GitHub Desktop.
~/.config/nvim/init.vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.config/nvim/plugged') | |
Plug 'fatih/vim-go' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'kyazdani42/nvim-tree.lua' | |
call plug#end() | |
let g:go_fmt_command = "goimports" | |
autocmd BufWritePre *.go :silent! GoFmt | |
" Navigate completion menu | |
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | |
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | |
" Confirm selection | |
inoremap <expr> <CR> pumvisible() ? coc#pum#confirm() : "\<CR>" | |
lua require'nvim-tree'.setup {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment