feat: add fish
This commit is contained in:
@@ -5,3 +5,4 @@ nvim/plugin
|
|||||||
_set_env_*.sh
|
_set_env_*.sh
|
||||||
_set_env.sh
|
_set_env.sh
|
||||||
log
|
log
|
||||||
|
cn.sh
|
||||||
|
|||||||
@@ -150,3 +150,4 @@ alias sws="swagger serve -F=swagger"
|
|||||||
function gtr(){
|
function gtr(){
|
||||||
go test -gcflags=all=-l -v -run="$1"
|
go test -gcflags=all=-l -v -run="$1"
|
||||||
}
|
}
|
||||||
|
fpath+=${ZDOTDIR:-~}/.zsh_functions
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
## set environment
|
||||||
|
|
||||||
|
# brew
|
||||||
|
set -gx HOMEBREW_BREW_GIT_REMOTE "https://mirrors.ustc.edu.cn/brew.git"
|
||||||
|
set -gx HOMEBREW_CORE_GIT_REMOTE "https://mirrors.ustc.edu.cn/homebrew-core.git"
|
||||||
|
set -gx HOMEBREW_BOTTLE_DOMAIN "https://mirrors.ustc.edu.cn/homebrew-bottles"
|
||||||
|
|
||||||
|
# go
|
||||||
|
set -gx GOPATH $HOME/go:$HOME/workrepo/go
|
||||||
|
set -gx GOPROXY goproxy.cn
|
||||||
|
set -gx GOSUMDB "sum.golang.google.cn"
|
||||||
|
|
||||||
|
set -gx PATH $PATH $HOME/go/bin
|
||||||
|
set -gx PATH $PATH $HOME/.yarn/bin $HOME/.config/yarn/global/node_modules/.bin
|
||||||
|
set -gx PATH $PATH "/usr/local/sbin"
|
||||||
|
# add nvim
|
||||||
|
set -gx PATH $PATH /usr/local/nvim/bin /usr/local/osx-64/nvim/bin
|
||||||
|
set -gx EDITOR vim
|
||||||
|
|
||||||
|
# alias
|
||||||
|
# git
|
||||||
|
abbr -a gitb "git branch --show-current | tr -d '\n' | pbcopy"
|
||||||
|
abbr -a gci "golangci-lint run -c=~/.dotfile/.golangci.yml ./..."
|
||||||
|
abbr -a gmt "go mod tidy"
|
||||||
|
abbr -a gtc "go test -gcflags=all=-l -cover ./..."
|
||||||
|
abbr -a swg "swag init -o docs -g "
|
||||||
|
abbr -a sws "swagger serve -F=swagger"
|
||||||
|
|
||||||
|
function gtr
|
||||||
|
go test -gcflags=all=-l -v -run="$1"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if status is-interactive
|
||||||
|
# Commands to run in interactive sessions can go here
|
||||||
|
end
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
if [ -f "$HOME/.config/fish/config.fish" ]; then
|
||||||
|
mv $HOME/.config/fish/config.fish $HOME/.config/fish/config.fish.bak
|
||||||
|
fi
|
||||||
|
ln -s $HOME/.dotfile/fish/config.fish $HOME/.config/fish/config.fish
|
||||||
@@ -18,6 +18,7 @@ require('pluginconfig/fzf-lua')
|
|||||||
require('pluginconfig/nvim-tree') -- This plugin must be required somewhere before colorscheme. Placing it after will break navigation keymappings
|
require('pluginconfig/nvim-tree') -- This plugin must be required somewhere before colorscheme. Placing it after will break navigation keymappings
|
||||||
require('pluginconfig/nvim-treesitter')
|
require('pluginconfig/nvim-treesitter')
|
||||||
require('pluginconfig/rnvimr')
|
require('pluginconfig/rnvimr')
|
||||||
|
require('pluginconfig/symbols-outline')
|
||||||
require('pluginconfig/telescope')
|
require('pluginconfig/telescope')
|
||||||
require('pluginconfig/toggleterm')
|
require('pluginconfig/toggleterm')
|
||||||
require('pluginconfig/vim-matchup')
|
require('pluginconfig/vim-matchup')
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
require("symbols-outline").setup()
|
||||||
@@ -181,6 +181,7 @@ local mappings = {
|
|||||||
L = { "<cmd>Lspsaga show_line_diagnostics<cr>", "Line Diagnostics" },
|
L = { "<cmd>Lspsaga show_line_diagnostics<cr>", "Line Diagnostics" },
|
||||||
k = { "<cmd>: LspRestart<cr>", "restart lsp server" },
|
k = { "<cmd>: LspRestart<cr>", "restart lsp server" },
|
||||||
n = { "<cmd>lua vim.lsp.diagnostic.goto_next()<cr>", "next diagnostic" },
|
n = { "<cmd>lua vim.lsp.diagnostic.goto_next()<cr>", "next diagnostic" },
|
||||||
|
o = { "<cmd>: SymbolsOutline<cr>", "symbols outline" },
|
||||||
p = { "<cmd>lua vim.lsp.diagnostic.goto_prev()<cr>", "prev diagnostic" },
|
p = { "<cmd>lua vim.lsp.diagnostic.goto_prev()<cr>", "prev diagnostic" },
|
||||||
P = { "<cmd>Lspsaga preview_definition<cr>", "Preview Definition" },
|
P = { "<cmd>Lspsaga preview_definition<cr>", "Preview Definition" },
|
||||||
q = { "<cmd>Telescope quickfix<cr>", "Quickfix" },
|
q = { "<cmd>Telescope quickfix<cr>", "Quickfix" },
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ return require("packer").startup(function(use)
|
|||||||
-- TimUntersberger/neogit
|
-- TimUntersberger/neogit
|
||||||
-- folke/lsp-colors.nvim
|
-- folke/lsp-colors.nvim
|
||||||
-- simrat39/symbols-outline.nvim
|
-- simrat39/symbols-outline.nvim
|
||||||
|
use 'simrat39/symbols-outline.nvim'
|
||||||
|
|
||||||
-- Git
|
-- Git
|
||||||
-- use {'tpope/vim-rhubarb', opt = true}
|
-- use {'tpope/vim-rhubarb', opt = true}
|
||||||
|
|||||||
Reference in New Issue
Block a user