all repos

dotfiles @ 2feea5ce1e31a0809ca4f1914300facdd0b00c45

my dotfiles
5 files changed, 27 insertions(+), 9 deletions(-)
update zsh, vscode, lvim
Author: neoteny ss2316544@gmail.com
Committed at: 2021-10-23 11:34:53 +0300
Parent: 846f374
M config/lvim/config.lua

@@ -1,3 +1,5 @@

+vim.o.relativenumber = true + lvim.format_on_save = true lvim.lint_on_save = true lvim.colorscheme = "onedarker"

@@ -23,7 +25,7 @@ -- NvimTree

lvim.builtin.nvimtree.ignore = { ".git", "node_modules", ".bin", "env" } -- LSP --- lvim.lsp.override = {"gopls"} +lvim.lsp.override = { "go", "gopls" } -- Others require "user.plugins"
M config/lvim/lua/user/keymaps.lua

@@ -1,10 +1,10 @@

+lvim.keys.insert_mode["<C-BS>"] = "<C-w>" lvim.keys.normal_mode["<C-w>"] = "<cmd>BufferClose<cr>" lvim.keys.normal_mode["<C-s>"] = "<cmd>w<cr>" lvim.keys.term_mode["jk"] = "<C-\\><C-n>" lvim.keys.visual_mode["jk"] = "<esc>" -- Which key --- lvim.builtin.which_key.mappings.l.a = { "<cmd>Telescope lsp_code_actions<cr>", "Code Actions" } lvim.builtin.which_key.mappings.l.d = { "<cmd>TroubleToggle<cr>", "Diagnostics" } lvim.builtin.which_key.mappings.l.R = { "<cmd>TroubleToggle lsp_references<cr>", "References" } lvim.builtin.which_key.mappings.s.P = { "<cmd>Telescope projects<cr>", "Projects" }
M config/lvim/lua/user/plugins.lua

@@ -3,8 +3,16 @@ { "tpope/vim-surround", keys = { "c", "y", "d" }, event = "BufRead" },

{ "folke/trouble.nvim", cmd = "TroubleToggle" }, { "theHamsta/nvim-dap-virtual-text", + after = "nvim-dap", config = function() require("plug.dap").setup() + end, + }, + { + "kristijanhusak/orgmode.nvim", + ft = "org", + config = function() + require"orgmode".setup {} end, }, {

@@ -33,7 +41,7 @@ {

"Smirnov-O/ts-unit.nvim", keys = { "vip", "cip", "yip", "dip" }, config = function() - require("plug.ts-unit").setup() + require("plug.ts-unit").setup { keymaps = true } end, }, {
M vscode/settings.json

@@ -1,6 +1,6 @@

{ "workbench.iconTheme": "material-icon-theme", - "workbench.colorTheme": "GitHub Dark Default", + "workbench.colorTheme": "Visual Studio Dark", "workbench.sideBar.location": "left", "workbench.editor.untitled.hint": "hidden", "workbench.startupEditor": "none",

@@ -24,7 +24,7 @@ "editor.wordWrap": "off",

"editor.fontSize": 14, "editor.tabSize": 4, // Files - "explorer.compactFolders": true, + "explorer.compactFolders": false, "explorer.confirmDragAndDrop": false, "explorer.confirmDelete": false, "files.insertFinalNewline": false,

@@ -53,15 +53,23 @@ "nrepl",

"test" ], "calva.paredit.defaultKeyMap": "strict", + // Golang + "go.toolsManagement.autoUpdate": true, + "go.lintOnSave": "package", + "go.lintTool": "golint", + "go.formatTool": "gofumpt", // Languages "javascript.suggestionActions.enabled": false, "typescript.suggestionActions.enabled": false, "[javascript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", + // "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.tabSize": 2 }, "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + // "editor.defaultFormatter": "esbenp.prettier-vscode" }, - "go.toolsManagement.autoUpdate": true + "typescript.inlayHints.parameterNames.enabled": "literals", + "typescript.inlayHints.variableTypes.enabled": true, + "javascript.inlayHints.functionLikeReturnTypes.enabled": true, + "window.zoomLevel": 1, }
M zshrc

@@ -28,7 +28,7 @@ }

## Aliases alias cls="clear" cp="cp -r" mkdir="mkdir -p" open="open_command" lg="lazygit" -alias lv="lvim" vim="lvim" +alias v="nvim" vim="v" alias ...="cd ../.." .3="cd ../../.." alias gor="go run" gob="go build" gog="go get" goi="go install" got="go test" alias n="npm" asdfi=". /opt/asdf-vm/asdf.sh"