This commit is contained in:
2022-10-28 15:59:38 +02:00
parent 42c2d6e172
commit 0fce7bbe9d
3 changed files with 20 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ nnoremap("<leader>i", ":e ~/.config/nvim/init.lua<cr>")
nnoremap("<leader>p", ":e ~/.config/nvim/lua/plug.lua<cr>") nnoremap("<leader>p", ":e ~/.config/nvim/lua/plug.lua<cr>")
-- FloaTerm configuration -- FloaTerm configuration
nmap("gt", ":FloatermNew --name=myfloat --height=0.8 --width=0.7 --autoclose=2 fish <CR> ") nmap("<leader>t", ":FloatermNew --name=myfloat --height=0.85 --width=0.75 --autoclose=2 bash <CR>")
tnoremap("<c-c>", "<c-\\><c-n>:q<CR>") tnoremap("<c-c>", "<c-\\><c-n>:q<CR>")
-- save all and quit -- save all and quit
@@ -32,14 +32,14 @@ nnoremap("<c-l>", ":bn<cr>")
-- clear highlights -- clear highlights
nnoremap("<c-e>", ":noh<cr>") nnoremap("<c-e>", ":noh<cr>")
-- run rust tests
nmap("<leader>r", ":FloatermNew --name=myfloat --height=0.85 --width=0.75 --autoclose=2 bash <cr>cargo test<cr>")
-- Telescope -- Telescope
nnoremap("<leader>f", "<cmd>lua require('telescope.builtin').find_files()<cr>") nnoremap("<leader>f", "<cmd>lua require('telescope.builtin').find_files()<cr>")
nnoremap("<leader>g", "<cmd>lua require('telescope.builtin').live_grep()<cr>") nnoremap("<leader>g", "<cmd>lua require('telescope.builtin').live_grep()<cr>")
nnoremap("<leader>b", "<cmd>lua require('telescope.builtin').buffers()<cr>") nnoremap("<leader>b", "<cmd>lua require('telescope.builtin').buffers()<cr>")
-- nnoremap("<leader>t", "<cmd>Pytest file<cr>")
-- nnoremap("<leader>tt", "<cmd>Pytest function<cr>")
-- source current file -- source current file
nnoremap("<leader>s", "<cmd>source<cr>") nnoremap("<leader>s", "<cmd>source<cr>")

View File

@@ -14,7 +14,12 @@ return require('packer').startup(function(use)
} }
use {'neoclide/coc.nvim', branch = 'release'} use {'neoclide/coc.nvim', branch = 'release'}
use 'mfussenegger/nvim-dap' use 'mfussenegger/nvim-dap'
use 'alfredodeza/pytest.vim' use {
"klen/nvim-test",
config = function()
require('nvim-test').setup()
end
}
use 'tpope/vim-commentary' use 'tpope/vim-commentary'
use 'williamboman/mason.nvim' use 'williamboman/mason.nvim'
use 'williamboman/mason-lspconfig.nvim' use 'williamboman/mason-lspconfig.nvim'

View File

@@ -150,6 +150,12 @@ _G.packer_plugins = {
path = "/Users/zev/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", path = "/Users/zev/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/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"] = { ["nvim-treesitter"] = {
loaded = true, loaded = true,
path = "/Users/zev/.local/share/nvim/site/pack/packer/start/nvim-treesitter", 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", path = "/Users/zev/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/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"] = { ["rust-tools.nvim"] = {
loaded = true, loaded = true,
path = "/Users/zev/.local/share/nvim/site/pack/packer/start/rust-tools.nvim", 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) 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") 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) 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 _G._packer.inside_compile = false
if _G._packer.needs_bufread == true then if _G._packer.needs_bufread == true then