chore: sync work config
This commit is contained in:
@@ -16,3 +16,8 @@
|
|||||||
|
|
||||||
[init]
|
[init]
|
||||||
templateDir = ~/.git-template
|
templateDir = ~/.git-template
|
||||||
|
[filter "lfs"]
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
|||||||
@@ -21,8 +21,9 @@ vim.opt.writebackup = false
|
|||||||
vim.o.completeopt = "menuone,noinsert,popup,fuzzy"
|
vim.o.completeopt = "menuone,noinsert,popup,fuzzy"
|
||||||
vim.opt.termguicolors = true -- set termguicolors to enable highlight groups
|
vim.opt.termguicolors = true -- set termguicolors to enable highlight groups
|
||||||
vim.opt.whichwrap = "bs<>[]hl" -- which "horizontal" keys are allowed to travel to prev/next line
|
vim.opt.whichwrap = "bs<>[]hl" -- which "horizontal" keys are allowed to travel to prev/next line
|
||||||
vim.opt.wrap = false -- display lines as one long line
|
vim.o.wrap = true -- 1. Enable line wrapping by default
|
||||||
vim.opt.linebreak = true -- companion to wrap don't split words
|
vim.o.linebreak = true -- 2. Break lines at word boundaries (improves readability)
|
||||||
|
vim.o.showbreak = "↪ " -- 3. Add a visual indicator for wrapped lines
|
||||||
vim.opt.scrolloff = 4 -- minimal number of screen lines to keep above and below the cursor
|
vim.opt.scrolloff = 4 -- minimal number of screen lines to keep above and below the cursor
|
||||||
vim.opt.sidescrolloff = 8 -- minimal number of screen columns either side of cursor if wrap is `false`
|
vim.opt.sidescrolloff = 8 -- minimal number of screen columns either side of cursor if wrap is `false`
|
||||||
vim.opt.numberwidth = 2 -- set number column width to 2 {default 4}
|
vim.opt.numberwidth = 2 -- set number column width to 2 {default 4}
|
||||||
@@ -72,6 +73,11 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
|||||||
vim.fn.setpos(".", save_cursor)
|
vim.fn.setpos(".", save_cursor)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
--
|
||||||
|
-- Set a keymap to toggle the 'wrap' option
|
||||||
|
vim.keymap.set("n", "<leader>w", function()
|
||||||
|
vim.opt.wrap:toggle()
|
||||||
|
end, { desc = "Toggle line wrapping" })
|
||||||
|
|
||||||
-- local uv = vim.uv
|
-- local uv = vim.uv
|
||||||
local uv = vim.loop
|
local uv = vim.loop
|
||||||
|
|||||||
@@ -89,9 +89,9 @@ return {
|
|||||||
-- install rust
|
-- install rust
|
||||||
rust = { "rustfmt" },
|
rust = { "rustfmt" },
|
||||||
-- brew install prettier
|
-- brew install prettier
|
||||||
markdown = { "prettierd", "prettier" },
|
markdown = { "markdownlint-cli2" },
|
||||||
json = { "prettierd", "prettier" },
|
json = { "prettierd", "prettier" },
|
||||||
yaml = { "prettierd", "prettier" },
|
yaml = { "yamlfmt" },
|
||||||
-- install terraform
|
-- install terraform
|
||||||
terraform = { "terraform_fmt" },
|
terraform = { "terraform_fmt" },
|
||||||
-- brew install shfmt
|
-- brew install shfmt
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ return {
|
|||||||
sh = { "shellcheck" },
|
sh = { "shellcheck" },
|
||||||
-- brew install tflint
|
-- brew install tflint
|
||||||
terraform = { "tflint" },
|
terraform = { "tflint" },
|
||||||
|
-- brew install markdownlint-cli2
|
||||||
|
markdown = { "markdownlint-cli2" },
|
||||||
-- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.0
|
-- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.0
|
||||||
go = { "golangcilint" },
|
go = { "golangcilint" },
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,4 +192,16 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"MeanderingProgrammer/render-markdown.nvim",
|
||||||
|
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
|
||||||
|
---@module 'render-markdown'
|
||||||
|
---@type render.md.UserConfig
|
||||||
|
opts = {},
|
||||||
|
config = function()
|
||||||
|
require("render-markdown").setup({
|
||||||
|
completions = { lsp = { enabled = true } },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,6 +97,8 @@ set-option -g @ssh-split-v-key 'H'
|
|||||||
set-option -g @ssh-split-w-key "N"
|
set-option -g @ssh-split-w-key "N"
|
||||||
set-option -g @ssh-split-r-key "R"
|
set-option -g @ssh-split-r-key "R"
|
||||||
|
|
||||||
|
set -g @plugin 'Morantron/tmux-fingers'
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
###############################################################################
|
###############################################################################
|
||||||
### tmux-continuum ###
|
### tmux-continuum ###
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
export PATH=~/.local/bin:$PATH
|
export PATH=~/.local/bin:$PATH
|
||||||
export PATH="$(go env GOPATH)/bin:$PATH"
|
|
||||||
export PATH=$DOTFILES/scripts/hcf/:$PATH
|
export PATH=$DOTFILES/scripts/hcf/:$PATH
|
||||||
|
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
@@ -12,3 +11,5 @@ case "$(uname -s)" in
|
|||||||
} ;;
|
} ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
export PATH="$(go env GOPATH)/bin:$PATH"
|
||||||
|
|||||||
Reference in New Issue
Block a user