Skip to content

Commit

Permalink
Merge pull request #2 from held-m/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
held-m authored Oct 23, 2022
2 parents eb5131c + 87b2b71 commit 3189fc9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 14 deletions.
28 changes: 22 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,27 @@ USER app
# create directory for nvim configs
RUN mkdir ~/.config/
RUN mkdir -p ~/.local/nvim
# COPY ./config/nvim /home/app/.config/nvim
# VOLUME ./config/nvim /home/app/.config/nvim
# VOLUME /home/app/.local
#install pugin manager paq-nvim
# RUN git clone --depth=1 https://github.com/savq/paq-nvim.git \
# "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim


#Install tools for golang
# Iferr snipet for iferr
RUN go install github.com/koron/iferr@latest
# Format long lines
RUN go install github.com/segmentio/golines@latest
# Format code
RUN go install mvdan.cc/gofumpt@latest
# Testsum
RUN go install gotest.tools/gotestsum@latest
# Autofill tags
RUN go install github.com/fatih/gomodifytags@latest
# Add Test Ginkgo
RUN go install github.com/onsi/ginkgo/v2/ginkgo@latest
# Add Tests
RUN go install github.com/cweill/gotests/gotests@latest
# Add a tool for answering questions about go source code
RUN go install golang.org/x/tools/cmd/guru@latest




WORKDIR /app
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
# Neovim Golang
## Intall

make install
make install

## Usage

## Keymap

Leader - ";"
Leader - ";"

### Navigation
Ctrl+i - move to start of the line
Ctrl+a - move to end of the line

### LSP

### NvimTreeToggle
Ctrl+j - open/close
Ctrl+f - find a file
Ctrl+j - open/close
Ctrl+f - find a file

### FzfLua
Ctrl+p - find a file
Leader+t - find a text
Leader+w - find a word
Ctrl+p - find a file
Leader+t - find a text
Leader+w - find a word

4 changes: 4 additions & 0 deletions config/nvim/lua/keybinds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ map('v', '<Leader>t', '<CMD>FzfLua grep<CR>')
map('n', '<Leader>w', '<CMD>FzfLua grep_cword<CR>')
map('i', '<Leader>w', '<CMD>FzfLua grep_cword<CR>')
map('v', '<Leader>w', '<CMD>FzfLua grep_cword<CR>')
-- FzfLua open FzfLua
map('n', '<Leader>o', '<CMD>FzfLua<CR>')
map('i', '<Leader>o', '<CMD>FzfLua<CR>')
map('v', '<Leader>o', '<CMD>FzfLua<CR>')
6 changes: 5 additions & 1 deletion config/nvim/lua/paq_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ require "paq" {

{'ray-x/go.nvim'};
{'nvim-treesitter/nvim-treesitter'};

-- golang debug adapter
{'mfussenegger/nvim-dap'};
{"rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"}};
-- golang tests
{'buoto/gotests-vim'};

{'nvim-tree/nvim-web-devicons'}; -- optional, for file icons
{'nvim-tree/nvim-tree.lua'};
Expand Down

0 comments on commit 3189fc9

Please sign in to comment.