all repos

dotfiles @ 50a524dbc55e6c75fcefb296ed84ac0b7081028b

i use rach linux btw
3 files changed, 29 insertions(+), 5 deletions(-)
lvim add ultest
Author: Smirnov-O ss2316544@gmail.com
Committed at: 2021-09-14 21:01:06 +0300
Parent: 0b99d6c
M config/lvim/config.lua
···
                5
                5
                 

              
                6
                6
                 -- Terminal

              
                7
                7
                 lvim.builtin.terminal.active = true

              
                8
                
                -lvim.builtin.autopairs.active = true

              
                9
                8
                 

              
                10
                9
                 -- GitSigns

              
                11
                10
                 lvim.builtin.gitsigns.opts.current_line_blame = true

              
                12
                11
                 lvim.builtin.gitsigns.opts.current_line_blame_opts = { delay = 200 }

              
                13
                12
                 

              
                14
                13
                 -- TreeSitter

              
                15
                
                -lvim.builtin.treesitter.ensure_installed = { "javascript", "typescript", "jsdoc", "lua", "java" }

              
                
                14
                +lvim.builtin.treesitter.ensure_installed = { "javascript", "typescript", "jsdoc", "lua" }

              
                16
                15
                 lvim.builtin.treesitter.indent.disable = { "clojure", "java", "python" }

              
                17
                16
                 

              
                18
                17
                 -- Telescope

              ···
                27
                26
                 lvim.keys.normal_mode["<C-s>"] = "<cmd>w<cr>"

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

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

              
                
                29
                +lvim.builtin.which_key.mappings["t"] = {

              
                
                30
                +  name = "Test",

              
                
                31
                +  t = { "<cmd>Ultest<cr>", "Run test" },

              
                
                32
                +  s = { "<cmd>UltestStop<cr>", "Stop test" },

              
                
                33
                +  c = { "<cmd>UltestClear<cr>", "Clear test result" },

              
                
                34
                +  n = { "<cmd>UltestNearest<cr>", "Run test order by cursor" },

              
                
                35
                +  o = { "<cmd>UltestOutput<cr>", "Show output order by cursor" },

              
                
                36
                +  j = { "<Plug>(ultest-next-fail)", "Next fail" },

              
                
                37
                +  k = { "<Plug>(ultest-prev-fail)", "Prev fail" },

              
                
                38
                +}

              
                30
                39
                 

              
                31
                40
                 local fmt = string.format

              
                32
                41
                 for i = 1, 9 do

              
                33
                42
                 	lvim.keys.normal_mode[fmt("<A-%d>", i)] = fmt("<cmd>BufferGoto %d<cr>", i)

              
                34
                43
                 end

              
                35
                44
                 

              
                36
                
                --- Plugins

              
                
                45
                +-- Pluginos

              
                37
                46
                 lvim.plugins = {

              
                38
                47
                 	{ "tpope/vim-surround", keys = { "c", "y", "d" } },

              
                39
                
                -	-- { "andymass/vim-matchup", keys = { "%" } },

              
                
                48
                +	{ "andymass/vim-matchup", keys = { "%" } },

              
                40
                49
                 	{ "tzachar/cmp-tabnine", run = "./install.sh", event = "InsertEnter" },

              
                41
                50
                 	{ "folke/trouble.nvim", cmd = { "TroubleToggle" } },

              
                42
                51
                 	{ "folke/todo-comments.nvim", event = "BufRead" },

              
                43
                52
                 	{ "theHamsta/nvim-dap-virtual-text", config = "require[[user.dap-virtual-text]].setup()" },

              
                
                53
                +	{

              
                
                54
                +    "rcarriga/vim-ultest",

              
                
                55
                +    config = "require[[user.ultest]].setup()",

              
                
                56
                +    requires = { "vim-test/vim-test" },

              
                
                57
                +    cmd = { "Ultest", "UltestStop", "UltestClear", "UltestNearest", "UltestOutput" },

              
                
                58
                +    run = ":UpdateRemotePlugins",

              
                
                59
                +	},

              
                44
                60
                 }

              
A config/lvim/lua/user/ultest.lua
···
                
                1
                +local M = {}

              
                
                2
                +

              
                
                3
                +M.setup = function()

              
                
                4
                +  -- Go

              
                
                5
                +  vim.g["test#go#gotest#options"] = "-v"

              
                
                6
                +end

              
                
                7
                +

              
                
                8
                +return M

              
M zshrc
···
                26
                26
                 alias cls="clear" cp="cp -r" mkdir="mkdir -p" open="open_command" lg="lazygit"

              
                27
                27
                 alias lv="lvim" vim="lvim"

              
                28
                28
                 alias ...="cd ../.." .3="cd ../../.."

              
                29
                
                -alias gor="go run" gob="go build" gog="go get" goi="go install"

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

              
                30
                30
                 

              
                31
                31
                 if [[ -f "/bin/exa" ]]; then

              
                32
                32
                    alias ls="exa -l" ll="ls" la="ls -a"