From 0fce7bbe9d0eb0ce91955cf2796091c83c0a6500 Mon Sep 17 00:00:00 2001 From: Zev Averbach Date: Fri, 28 Oct 2022 15:59:38 +0200 Subject: [PATCH] stuff --- lua/keys.lua | 8 ++++---- lua/plug.lua | 7 ++++++- plugin/packer_compiled.lua | 15 ++++++++++----- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/lua/keys.lua b/lua/keys.lua index bebef73..94c4074 100644 --- a/lua/keys.lua +++ b/lua/keys.lua @@ -19,7 +19,7 @@ nnoremap("i", ":e ~/.config/nvim/init.lua") nnoremap("p", ":e ~/.config/nvim/lua/plug.lua") -- FloaTerm configuration -nmap("gt", ":FloatermNew --name=myfloat --height=0.8 --width=0.7 --autoclose=2 fish ") +nmap("t", ":FloatermNew --name=myfloat --height=0.85 --width=0.75 --autoclose=2 bash ") tnoremap("", ":q") -- save all and quit @@ -32,14 +32,14 @@ nnoremap("", ":bn") -- clear highlights nnoremap("", ":noh") +-- run rust tests +nmap("r", ":FloatermNew --name=myfloat --height=0.85 --width=0.75 --autoclose=2 bash cargo test") + -- Telescope nnoremap("f", "lua require('telescope.builtin').find_files()") nnoremap("g", "lua require('telescope.builtin').live_grep()") nnoremap("b", "lua require('telescope.builtin').buffers()") --- nnoremap("t", "Pytest file") --- nnoremap("tt", "Pytest function") - -- source current file nnoremap("s", "source") diff --git a/lua/plug.lua b/lua/plug.lua index cd9548e..f380e51 100644 --- a/lua/plug.lua +++ b/lua/plug.lua @@ -14,7 +14,12 @@ return require('packer').startup(function(use) } use {'neoclide/coc.nvim', branch = 'release'} use 'mfussenegger/nvim-dap' - use 'alfredodeza/pytest.vim' + use { + "klen/nvim-test", + config = function() + require('nvim-test').setup() + end +} use 'tpope/vim-commentary' use 'williamboman/mason.nvim' use 'williamboman/mason-lspconfig.nvim' diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index b2b7bea..7aa8ed6 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -150,6 +150,12 @@ _G.packer_plugins = { path = "/Users/zev/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", url = "https://github.com/neovim/nvim-lspconfig" }, + ["nvim-test"] = { + config = { "\27LJ\2\n7\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\14nvim-test\frequire\0" }, + loaded = true, + path = "/Users/zev/.local/share/nvim/site/pack/packer/start/nvim-test", + url = "https://github.com/klen/nvim-test" + }, ["nvim-treesitter"] = { loaded = true, path = "/Users/zev/.local/share/nvim/site/pack/packer/start/nvim-treesitter", @@ -170,11 +176,6 @@ _G.packer_plugins = { path = "/Users/zev/.local/share/nvim/site/pack/packer/start/plenary.nvim", url = "https://github.com/nvim-lua/plenary.nvim" }, - ["pytest.vim"] = { - loaded = true, - path = "/Users/zev/.local/share/nvim/site/pack/packer/start/pytest.vim", - url = "https://github.com/alfredodeza/pytest.vim" - }, ["rust-tools.nvim"] = { loaded = true, path = "/Users/zev/.local/share/nvim/site/pack/packer/start/rust-tools.nvim", @@ -222,6 +223,10 @@ time([[Defining packer_plugins]], false) time([[Config for nvim-autopairs]], true) try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs") time([[Config for nvim-autopairs]], false) +-- Config for: nvim-test +time([[Config for nvim-test]], true) +try_loadstring("\27LJ\2\n7\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\14nvim-test\frequire\0", "config", "nvim-test") +time([[Config for nvim-test]], false) _G._packer.inside_compile = false if _G._packer.needs_bufread == true then