1
0
Fork 0

fix: add trouble and formatter nvim plugins

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2023-02-08 00:31:48 -05:00
parent ded04456cb
commit 6db99389bc
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
4 changed files with 12 additions and 8 deletions

View file

@ -8,7 +8,7 @@ local function map(mode, lhs, rhs, opts)
end
-- format
map('n', '<leader>f', ':Format<CR>')
map('n', '<leader>f', ':w<CR>:Format<CR>')
-- open terminal
map("n", "<leader>ott", ":ToggleTerm<CR>")
@ -56,3 +56,6 @@ map("n", "<C-k>", ":BufferLineCycleNext<CR>")
map("n", "<C-j>", ":BufferLineCyclePrev<CR>")
map("n", "<C-S-k>", ":BufferLineMoveNext<CR>")
map("n", "<C-S-j>", ":BufferLineMovePrev<CR>")
-- trouble
map("n", "<leader>od", ":TroubleToggle<CR>")