-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move .vimrc to lua syntax and .config/nvim/lua/config
- Loading branch information
1 parent
9048253
commit b809943
Showing
8 changed files
with
734 additions
and
267 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
-- set comment_leader for elixir comments | ||
vim.b.comment_leader = '#' | ||
|
||
-- set the debug_cmd for elixir pry statements | ||
vim.b.debug_cmd = 'require IEx; IEx.pry' | ||
|
||
-- execute mix test on current file | ||
vim.api.nvim_buf_set_keymap('0', 'n', '<leader>r', ':!time mix test % --color<CR>', { silent = true }) | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
-- GoVet " vim-go compile go program | ||
|
||
-- Linters | ||
-- gosec - AST security | ||
-- gofmt - formating | ||
-- govet - compile bugs | ||
-- godepth - depth complexity | ||
-- staticcheck - simplification suggetsions | ||
|
||
-- vim-go config | ||
vim.g.go_def_mode = 'guru' | ||
vim.g.go_code_completion_enabled = 0 | ||
vim.g.go_template_autocreate = 0 | ||
|
||
vim.g.go_alternate_mode = 'vsplit' -- TODO: set this to a hotkey | ||
|
||
-- se. comment_leader for golang comments | ||
vim.b.comment_leader = '// ' | ||
|
||
-- execute tests on current directory package, | ||
-- ./ (dir) % (current filepath) p (path) . (reduce to relative) h (directory) | ||
vim.api.nvim_set_keymap("n", "<leader>r", [[:!time go test -v ./%:p:.:h<CR>]]) | ||
-- autocmd BufWritePre *.go GoFmt " run vim-go GoFmt on save | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.