Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change diagnostic keybinding to fix packer conflict #178

Merged
merged 1 commit into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion lua/configs/lsp/handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ local function lsp_keymaps(bufnr)
vim.api.nvim_buf_set_keymap(bufnr, "n", "go", "<cmd>lua vim.diagnostic.open_float()<CR>", opts)
vim.api.nvim_buf_set_keymap(bufnr, "n", "[d", '<cmd>lua vim.diagnostic.goto_prev({ border = "rounded" })<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, "n", "]d", '<cmd>lua vim.diagnostic.goto_next({ border = "rounded" })<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>p", "<cmd>lua vim.diagnostic.setloclist()<CR>", opts)
vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]]
end

Expand Down
2 changes: 2 additions & 0 deletions lua/configs/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ function M.config()
l = {
name = "LSP",
a = { "Code Action" },
d = { "Hover Diagnostic" },
D = { "All Diagnostics" },
f = { "Format" },
i = { "Info" },
I = { "Installer Info" },
Expand Down
2 changes: 2 additions & 0 deletions lua/core/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ map("n", "<leader>sr", "<cmd>Telescope registers<CR>", opts)
map("n", "<leader>sk", "<cmd>Telescope keymaps<CR>", opts)
map("n", "<leader>sc", "<cmd>Telescope commands<CR>", opts)
map("n", "<leader>ls", "<cmd>Telescope lsp_document_symbols<CR>", opts)
map("n", "<leader>lD", "<cmd>Telescope diagnostics<CR>", opts)

-- Lspsaga
if config.enabled.lspsaga then
Expand All @@ -107,6 +108,7 @@ if config.enabled.lspsaga then
map("n", "<C-d>", "<cmd>lua require('lspsaga.action').smart_scroll_with_saga(1)<cr>", opts)
map("n", "<leader>la", "<cmd>Lspsaga code_action<CR>", opts)
map("n", "<leader>lr", "<cmd>Lspsaga rename<CR>", opts)
map("n", "<leader>ld", "<cmd>Lspsaga show_line_diagnostics<CR>", opts)
end

-- Comment
Expand Down