Compare commits
4 Commits
e142630914
...
157a5172ac
Author | SHA1 | Date |
---|---|---|
Rob Watson | 157a5172ac | |
Rob Watson | cffcfca318 | |
Rob Watson | e41673a9ca | |
Rob Watson | 7147da76cd |
|
@ -113,6 +113,7 @@
|
|||
helper = !gh auth git-credential
|
||||
[diff]
|
||||
tool = vimdiff
|
||||
ignoreSubmodules = dirty
|
||||
[merge]
|
||||
tool = vimdiff
|
||||
[interactive]
|
||||
|
|
18
nvimrc
18
nvimrc
|
@ -295,6 +295,24 @@ packadd! vim-rhubarb " https://github.com/tpope/vim-rhubarb.git
|
|||
packadd! editorconfig-vim " https://github.com/editorconfig/editorconfig-vim.git
|
||||
packadd! vim-wordmotion " https://github.com/chaoren/vim-wordmotion.git
|
||||
|
||||
" projectionist
|
||||
packadd! vim-projectionist " https://github.com/tpope/vim-projectionist.git
|
||||
|
||||
let g:projectionist_heuristics = {
|
||||
\ "*.go": {
|
||||
\ "*_test.go": {
|
||||
\ "type": "source",
|
||||
\ "alternate": "{}.go",
|
||||
\ },
|
||||
\ "*.go": {
|
||||
\ "type": "source",
|
||||
\ "alternate": "{}_test.go",
|
||||
\ },
|
||||
\ "etc/rbenv.d/*.bash": {"type": "hook"}
|
||||
\ }
|
||||
\ }
|
||||
nnoremap <leader>A :A<cr>
|
||||
|
||||
" aerial
|
||||
packadd! aerial.nvim " https://github.com/stevearc/aerial.nvim.git
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
local nvim_lsp = require("lspconfig")
|
||||
|
||||
vim.lsp.set_log_level("debug")
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
-- TODO: use vim.api.nvim_create_autocmd
|
||||
vim.api.nvim_exec2([[autocmd User LspDiagnosticsChanged call lightline#update()]], { output = false })
|
||||
|
@ -66,19 +68,23 @@ nvim_lsp.gopls.setup({
|
|||
unusedresult = true,
|
||||
nilness = true,
|
||||
},
|
||||
buildFlags = { "-tags=acceptance" },
|
||||
buildFlags = { "-tags=acceptance,basketapitest,graphqlapitest" }
|
||||
},
|
||||
},
|
||||
init_options = {
|
||||
usePlaceholders = true,
|
||||
},
|
||||
capabilities = vim.tbl_extend("error", capabilities, {
|
||||
capabilities = vim.tbl_extend(
|
||||
"error",
|
||||
capabilities,
|
||||
{
|
||||
workspace = {
|
||||
didChangeWatchedFiles = {
|
||||
dynamicRegistration = true,
|
||||
},
|
||||
},
|
||||
}),
|
||||
dynamicRegistration = true
|
||||
}
|
||||
}
|
||||
}
|
||||
),
|
||||
on_attach = on_attach,
|
||||
})
|
||||
|
||||
|
|
2
zshrc
2
zshrc
|
@ -116,7 +116,7 @@ alias pg="pgrep -fa"
|
|||
alias pk="pkill -fc"
|
||||
alias rez="source $HOME/.zshenv && source $ZDOTDIR/.zshrc"
|
||||
alias rgo="rg -g '*.go' -g '!vendor/'"
|
||||
alias rgs="rg -g '*.go' -g '*.rb' -g '!vendor/' -g '!*_test.go' -g '!*_spec.rb'"
|
||||
alias rgs="rg -g '*.go' -g '*.rb' -g '!vendor/' -g '!*_test.go' -g '!*_spec.rb'" -g '!*/mocks/*' -g '!*_mock.go'
|
||||
alias rgt="rg -g '*_test.go' -g '*_spec.rb' -g '!vendor/'"
|
||||
alias sc="systemctl"
|
||||
alias shc="shellcheck"
|
||||
|
|
Loading…
Reference in New Issue