diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index f77c787..534b148 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -25,5 +25,7 @@ "nvim-web-devicons": { "branch": "master", "commit": "b77921fdc44833c994fdb389d658ccbce5490c16" }, "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, - "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" } + "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" }, + "vim-test": { "branch": "master", "commit": "6acc7d96487abaaa57a19b0d43efaea6633d6bb7" }, + "vimux": { "branch": "master", "commit": "f7c41607d9246ec4b6cc28587cce84d75d106e3e" } } \ No newline at end of file diff --git a/config/nvim/lua/plugins/neotree.lua b/config/nvim/lua/plugins/neotree.lua index c6e2216..52b2e6d 100644 --- a/config/nvim/lua/plugins/neotree.lua +++ b/config/nvim/lua/plugins/neotree.lua @@ -7,6 +7,12 @@ return { "MunifTanjim/nui.nvim", }, config = function() + require("neo-tree").setup({ + close_if_last_window = true, + }) vim.keymap.set("n", "", ":Neotree filesystem reveal left", {}) + + + end, } diff --git a/config/nvim/lua/plugins/vim-test.lua b/config/nvim/lua/plugins/vim-test.lua new file mode 100644 index 0000000..a0824de --- /dev/null +++ b/config/nvim/lua/plugins/vim-test.lua @@ -0,0 +1,12 @@ +return { + "vim-test/vim-test", + dependencies = { + "preservim/vimux" + }, + vim.keymap.set('n', 't', ':TestNearest'), + vim.keymap.set('n', 'T', ':TestFile'), + vim.keymap.set('n', 'a', ':TestSuite'), + vim.keymap.set('n', 'l', ':TestLast'), + vim.keymap.set('n', 'g', ':TestVisit'), + vim.cmd("let test#strategy = 'vimux'"), +} diff --git a/config/nvim/lua/vim-options.lua b/config/nvim/lua/vim-options.lua index 96ea9cd..f994753 100644 --- a/config/nvim/lua/vim-options.lua +++ b/config/nvim/lua/vim-options.lua @@ -2,4 +2,32 @@ vim.cmd("set expandtab") vim.cmd("set tabstop=2") vim.cmd("set softtabstop=2") vim.cmd("set shiftwidth=2") +vim.cmd("map s ") + + +vim.keymap.set("n", "", "", { silent = true, remap = false }) vim.g.mapleader = " " + + +-- vim.keymap.set("n", "", "", { silent = true, remap = true }) + +-- vim.cmd("nnoremap :echom 'p'") +-- vim.cmd("nnoremap :wincmd h") +-- vim.cmd("nnoremap :wincmd j") +-- vim.cmd("nnoremap :wincmd k") +-- vim.cmd("nnoremap :wincmd l") + + +vim.keymap.set('n', '', ':wincmd h') +vim.keymap.set('n', '', ':wincmd j') +vim.keymap.set('n', '', ':wincmd k') +vim.keymap.set('n', '', ':wincmd l') +-- vim.keymap.set('n', '', ':wincmd h') +-- vim.keymap.set('n', '', ':wincmd j') +-- vim.keymap.set('n', '', ':wincmd k') +-- vim.keymap.set('n', '', ':wincmd l') + +vim.keymap.set('n', 'h', ':nohlsearch') + + +