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" })
|
||||
|
||||
@@ -94,7 +94,8 @@ require("lazy").setup({
|
||||
action = function(exporter)
|
||||
local current_file = vim.api.nvim_buf_get_name(0)
|
||||
local target = vim.fn.fnamemodify(current_file, ':p:r') .. '.html'
|
||||
local command = { 'pandoc', '--filter', 'pandoc-plot', current_file, '--standalone', '--toc', '--number-sections', '--output', target }
|
||||
local command = { 'pandoc', '--filter', 'pandoc-plot', current_file, '--standalone', '--toc',
|
||||
'--number-sections', '--output', target }
|
||||
local on_success = function(output)
|
||||
print('Success!')
|
||||
vim.api.nvim_echo({ { table.concat(output, '\n') } }, true, {})
|
||||
@@ -488,7 +489,7 @@ require("lazy").setup({
|
||||
dashboard.section.header.val = vim.split(adjustedLogo, '\n')
|
||||
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button('h', ' Browse ~', '<cmd>Neotree<CR>'),
|
||||
dashboard.button('o', ' AI Chat', '<cmd>OGPT<CR>'),
|
||||
dashboard.button('n', ' New file', ':ene <BAR> startinsert <CR>'),
|
||||
dashboard.button('s', ' Settings', '<cmd>WorkspacesOpen config-nvim<CR>'),
|
||||
dashboard.button('u', ' Update plugins', '<cmd>Lazy update<CR>'),
|
||||
@@ -519,7 +520,7 @@ require("lazy").setup({
|
||||
-- improved Rust support
|
||||
{
|
||||
'mrcjkb/rustaceanvim',
|
||||
version = '^5', -- Recommended
|
||||
version = '^6', -- Recommended
|
||||
lazy = false, -- This plugin is already lazy
|
||||
},
|
||||
|
||||
@@ -602,11 +603,6 @@ require("lazy").setup({
|
||||
opts = {},
|
||||
},
|
||||
|
||||
-- database connectivity
|
||||
{
|
||||
"nanotee/sqls.nvim"
|
||||
},
|
||||
|
||||
-- ollama and LLM integration
|
||||
{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user