Skip to content

Commit

Permalink
Adding aliases & go
Browse files Browse the repository at this point in the history
  • Loading branch information
daonb committed Dec 27, 2023
1 parent 05c463a commit 99b4fbb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .config/nvim/after/plugin/lspzero.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
local lsp = require('lsp-zero').preset({})

local lspconfig = require('lspconfig')
lspconfig.tsserver.setup {}

lsp.on_attach(function(client, bufnr)
lsp.default_keymaps({buffer = bufnr})
end)
-- lsp.on_attach(function(client, bufnr)
-- lsp.default_keymaps({buffer = bufnr})
-- end)

lspconfig["gopls"].setup({
capabilities = capabilities,
on_attach = on_attach,
})

lspconfig["pylyzer"].setup({})
2 changes: 1 addition & 1 deletion .config/nvim/lua/daonb/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ return require('packer').startup(function(use)
use({"jose-elias-alvarez/null-ls.nvim",
requires = { "nvim-lua/plenary.nvim" },
})
use('jose-elias-alvarez/typescript.nvim')
-- use('jose-elias-alvarez/typescript.nvim')


use({'nvim-lualine/lualine.nvim',
Expand Down
6 changes: 5 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export CHAMBER_KMS_KEY_ALIAS=aws/ssm
if [ -d "/usr/games" ]; then
export PATH="/usr/games:$PATH"
fi
if [ $(uname -s) = "Darwin" ]; then
export PATH="/opt/homebrew/bin:$PATH"
fi
# TODO: do we need this?
if [ -d "/usr/local/opt/openssl/lib" ]; then
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"
Expand Down Expand Up @@ -48,9 +51,10 @@ alias tmuxc='nvim "$HOME/.tmux.conf"'
alias lg="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gdb="arch -arm64 dlv debug"
alias got="go test -v -race -coverprofile=coverage.txt -covermode=atomic"
alias llm="python3 -m llm"
alias imgcat="python3 -m imgcat"
# Welcome message - fortune piped into a random cow
if [ $(uname -s) = "Darwin" ]; then
export PATH="/opt/homebrew/bin:$PATH"
fortune | cowsay -f /usr/local/Cellar/cowsay/3.04/share/cows/kosh.cow
else
fortune | cowsay -f $(find "/usr/share/cowsay/cows/" | shuf | head -1) -n
Expand Down

0 comments on commit 99b4fbb

Please sign in to comment.