Keybindings:
- rust overrides K for hover actions and J for joinLines - <space>F now is dioxus format file - <space>E now is vim.diagnostic.open_float Config: - splash shows OGPT entry - rustaceanvim now requires version ^6 instead of ^5 - dropped sqls.nvim
This commit is contained in:
@@ -16,6 +16,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||
vim.keymap.set("n", "<space>f", function()
|
||||
vim.lsp.buf.format({ async = true })
|
||||
end, { desc = "LSP Format buffer", unpack(bufopts) })
|
||||
vim.keymap.set("n", '<space>F', ":silent !dx fmt --file %<cr>", { desc = "DX format rsx! regions", unpack(bufopts) })
|
||||
vim.keymap.set("v", "<space>f", LSPRangeFormatFunction, { desc = "LSP Format region" })
|
||||
|
||||
-- 2024-09-09 - some ccflow commands for diagnostics, symbols and code actions
|
||||
@@ -26,6 +27,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||
local new_config = not vim.diagnostic.config().virtual_lines
|
||||
vim.diagnostic.config({ virtual_lines = new_config })
|
||||
end, { desc = "Virtual line diagnostics" })
|
||||
vim.keymap.set('n', '<space>E', vim.diagnostic.open_float, { desc = "Popup diagnostics" })
|
||||
vim.keymap.set('n', '<space>s', fzf.lsp_document_symbols, { desc = "Doc symbols" })
|
||||
vim.keymap.set('n', '<space>c', fzf.lsp_code_actions, { desc = "Code Actions" })
|
||||
vim.keymap.set('n', '<space>[', vim.diagnostic.goto_prev, { desc = "Previous diagnostics" })
|
||||
|
||||
Reference in New Issue
Block a user