feat(mappings): update line diagnostic map
This commit is contained in:
parent
c19b565f0e
commit
cc86398d87
2 changed files with 1 additions and 4 deletions
|
@ -6,9 +6,6 @@ map('n', '<leader>cc', ':cclose <cr>')
|
|||
map('n', '<leader>co', ':copen <cr>')
|
||||
map('n', '<leader>cf', ':cfdo %s/')
|
||||
|
||||
-- make Y behave like others
|
||||
map('n', 'Y', 'y$')
|
||||
|
||||
require('cosmic.modules.session.mappings')
|
||||
require('cosmic.modules.telescope.mappings').init()
|
||||
require('cosmic.modules.nvim-tree.mappings')
|
||||
|
|
|
@ -13,7 +13,7 @@ map('n', 'gn', '<cmd>lua require("cosmic.theme.ui").rename()<cr>')
|
|||
-- diagnostics
|
||||
map('n', '[g', '<cmd>lua vim.diagnostic.goto_prev()<cr>')
|
||||
map('n', ']g', '<cmd>lua vim.diagnostic.goto_next()<cr>')
|
||||
map('n', 'ge', '<cmd>lua vim.diagnostic.open_float(0, { scope = "line", })<cr>')
|
||||
map('n', 'ge', '<cmd>lua vim.diagnostic.open_float(nil, { scope = "line", })<cr>')
|
||||
map('n', '<leader>ge', '<cmd>lua require("telescope.builtin").lsp_document_diagnostics()<cr>')
|
||||
map('n', 'K', '<cmd>lua vim.lsp.buf.hover()<cr>')
|
||||
map('n', '<leader>ga', '<cmd>lua require("telescope.builtin").lsp_code_actions()<cr>')
|
||||
|
|
Loading…
Add table
Reference in a new issue