all repos

dotfiles @ 2feea5c

i use rach linux btw
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
        +vim.o.relativenumber = true

      
        
        2
        +

      
        1
        3
         lvim.format_on_save = true

      
        2
        4
         lvim.lint_on_save = true

      
        3
        5
         lvim.colorscheme = "onedarker"

      ···
        23
        25
         lvim.builtin.nvimtree.ignore = { ".git", "node_modules", ".bin", "env" }

      
        24
        26
         

      
        25
        27
         -- LSP

      
        26
        
        --- lvim.lsp.override = {"gopls"}

      
        
        28
        +lvim.lsp.override = { "go", "gopls" }

      
        27
        29
         

      
        28
        30
         -- Others

      
        29
        31
         require "user.plugins"

      
M config/lvim/lua/user/keymaps.lua
···
        
        1
        +lvim.keys.insert_mode["<C-BS>"] = "<C-w>"

      
        1
        2
         lvim.keys.normal_mode["<C-w>"] = "<cmd>BufferClose<cr>"

      
        2
        3
         lvim.keys.normal_mode["<C-s>"] = "<cmd>w<cr>"

      
        3
        4
         lvim.keys.term_mode["jk"] = "<C-\\><C-n>"

      
        4
        5
         lvim.keys.visual_mode["jk"] = "<esc>"

      
        5
        6
         

      
        6
        7
         -- Which key

      
        7
        
        --- lvim.builtin.which_key.mappings.l.a = { "<cmd>Telescope lsp_code_actions<cr>", "Code Actions" }

      
        8
        8
         lvim.builtin.which_key.mappings.l.d = { "<cmd>TroubleToggle<cr>", "Diagnostics" }

      
        9
        9
         lvim.builtin.which_key.mappings.l.R = { "<cmd>TroubleToggle lsp_references<cr>", "References" }

      
        10
        10
         lvim.builtin.which_key.mappings.s.P = { "<cmd>Telescope projects<cr>", "Projects" }

      
M config/lvim/lua/user/plugins.lua
···
        3
        3
           { "folke/trouble.nvim", cmd = "TroubleToggle" },

      
        4
        4
           {

      
        5
        5
             "theHamsta/nvim-dap-virtual-text",

      
        
        6
        +    after = "nvim-dap",

      
        6
        7
             config = function()

      
        7
        8
               require("plug.dap").setup()

      
        
        9
        +    end,

      
        
        10
        +  },

      
        
        11
        +  {

      
        
        12
        +    "kristijanhusak/orgmode.nvim",

      
        
        13
        +    ft = "org",

      
        
        14
        +    config = function()

      
        
        15
        +      require"orgmode".setup {}

      
        8
        16
             end,

      
        9
        17
           },

      
        10
        18
           {

      ···
        33
        41
             "Smirnov-O/ts-unit.nvim",

      
        34
        42
             keys = { "vip", "cip", "yip", "dip" },

      
        35
        43
             config = function()

      
        36
        
        -      require("plug.ts-unit").setup()

      
        
        44
        +      require("plug.ts-unit").setup { keymaps = true }

      
        37
        45
             end,

      
        38
        46
           },

      
        39
        47
           {

      
M vscode/settings.json
···
        1
        1
         {

      
        2
        2
           "workbench.iconTheme": "material-icon-theme",

      
        3
        
        -  "workbench.colorTheme": "GitHub Dark Default",

      
        
        3
        +  "workbench.colorTheme": "Visual Studio Dark",

      
        4
        4
           "workbench.sideBar.location": "left",

      
        5
        5
           "workbench.editor.untitled.hint": "hidden",

      
        6
        6
           "workbench.startupEditor": "none",

      ···
        24
        24
           "editor.fontSize": 14,

      
        25
        25
           "editor.tabSize": 4,

      
        26
        26
           // Files

      
        27
        
        -  "explorer.compactFolders": true,

      
        
        27
        +  "explorer.compactFolders": false,

      
        28
        28
           "explorer.confirmDragAndDrop": false,

      
        29
        29
           "explorer.confirmDelete": false,

      
        30
        30
           "files.insertFinalNewline": false,

      ···
        53
        53
             "test"

      
        54
        54
           ],

      
        55
        55
           "calva.paredit.defaultKeyMap": "strict",

      
        
        56
        +  // Golang

      
        
        57
        +  "go.toolsManagement.autoUpdate": true,

      
        
        58
        +  "go.lintOnSave": "package",

      
        
        59
        +  "go.lintTool": "golint",

      
        
        60
        +  "go.formatTool": "gofumpt",

      
        56
        61
           // Languages

      
        57
        62
           "javascript.suggestionActions.enabled": false,

      
        58
        63
           "typescript.suggestionActions.enabled": false,

      
        59
        64
           "[javascript]": {

      
        60
        
        -    "editor.defaultFormatter": "esbenp.prettier-vscode",

      
        
        65
        +    // "editor.defaultFormatter": "esbenp.prettier-vscode",

      
        61
        66
             "editor.tabSize": 2

      
        62
        67
           },

      
        63
        68
           "[typescript]": {

      
        64
        
        -    "editor.defaultFormatter": "esbenp.prettier-vscode"

      
        
        69
        +    // "editor.defaultFormatter": "esbenp.prettier-vscode"

      
        65
        70
           },

      
        66
        
        -  "go.toolsManagement.autoUpdate": true

      
        
        71
        +  "typescript.inlayHints.parameterNames.enabled": "literals",

      
        
        72
        +  "typescript.inlayHints.variableTypes.enabled": true,

      
        
        73
        +  "javascript.inlayHints.functionLikeReturnTypes.enabled": true,

      
        
        74
        +  "window.zoomLevel": 1,

      
        67
        75
         }
      
M zshrc
···
        28
        28
         

      
        29
        29
         ## Aliases

      
        30
        30
         alias cls="clear" cp="cp -r" mkdir="mkdir -p" open="open_command" lg="lazygit"

      
        31
        
        -alias lv="lvim" vim="lvim"

      
        
        31
        +alias v="nvim" vim="v"

      
        32
        32
         alias ...="cd ../.." .3="cd ../../.."

      
        33
        33
         alias gor="go run" gob="go build" gog="go get" goi="go install" got="go test"

      
        34
        34
         alias n="npm" asdfi=". /opt/asdf-vm/asdf.sh"