Several changes

This commit is contained in:
Fabian Becker
2022-09-01 15:57:41 +02:00
parent 0df2a6918c
commit 183d7b6a57
5 changed files with 17 additions and 8 deletions

View File

@@ -57,11 +57,14 @@ nnoremap('Q', '<Nop>')
nnoremap('<Leader>hl', ':nohl<CR>')
-- Vim Test
nnoremap('<leader>t', ':TestNearest<CR>')
nnoremap('<leader>T', ':TestFile<CR>')
nnoremap('<leader>a', ':TestSuite<CR>')
nnoremap('<leader>l', ':TestLast<CR>')
nnoremap('<leader>g', ':TestVisit<CR>')
nnoremap('<leader>tt', ':TestNearest<CR>')
nnoremap('<leader>tT', ':TestFile<CR>')
nnoremap('<leader>ta', ':TestSuite<CR>')
nnoremap('<leader>tl', ':TestLast<CR>')
nnoremap('<leader>tg', ':TestVisit<CR>')
-- Reload init.lua
nnoremap('<leader>sv', ':source $MYVIMRC<CR>')
vim.cmd("nnoremap <silent> <C-p> :Lspsaga diagnostic_jump_prev<CR>")
vim.cmd("nnoremap <silent> <C-n> :Lspsaga diagnostic_jump_next<CR>")

View File

@@ -0,0 +1,5 @@
require("neotest").setup({
adapters = {
require("neotest-vim-test")({ allow_file_types = { "haskell", "elixir" } }),
},
})

View File

@@ -2,7 +2,7 @@ local dap = require('dap')
dap.adapters.mix_task = {
type = 'executable',
command = '/Users/fbecker18/opt/elixir-ls/bin/debugger.sh', -- debugger.bat for windows
command = '/home/halfdan/opt/elixir-ls/bin/debugger.sh', -- debugger.bat for windows
args = {}
}