diff --git a/nvim/.config/nvim/after/ftplugin/quarto.lua b/nvim/.config/nvim/after/ftplugin/quarto.lua index cbe7b57..fe290a1 100644 --- a/nvim/.config/nvim/after/ftplugin/quarto.lua +++ b/nvim/.config/nvim/after/ftplugin/quarto.lua @@ -70,10 +70,6 @@ map('n', 'ln', 'lua vim.lsp.buf.rename()', { buffer = bufnr, desc = 'Rename element' }) map('n', 'lr', 'lua vim.lsp.buf.references()', { buffer = bufnr, desc = 'References' }) -if client and client.server_capabilities.document_formatting then - map('n', 'lf', "lua vim.lsp.buf.formatting()", - { buffer = bufnr, desc = 'Format document' }) -end map('n', 'K', 'lua vim.lsp.buf.hover()', { buffer = bufnr, desc = 'Hover definition' }) diff --git a/nvim/.config/nvim/lua/plug/_lsp.lua b/nvim/.config/nvim/lua/plug/_lsp.lua index ee86304..beb53a2 100644 --- a/nvim/.config/nvim/lua/plug/_lsp.lua +++ b/nvim/.config/nvim/lua/plug/_lsp.lua @@ -7,9 +7,17 @@ vim.fn.sign_define("DiagnosticSignInfo", { text = "", texthl = "DiagnosticSig vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" }) lsp.ensure_installed({ - 'arduino_language_server', 'bashls', 'beancount', 'clangd', 'dockerls', - 'docker_compose_language_service', 'lua_ls', 'pyright', 'ruff_lsp', 'taplo', - 'yamlls' + 'arduino_language_server', + 'bashls', + 'beancount', + 'clangd', + 'dockerls', + 'docker_compose_language_service', + 'lua_ls', + 'pyright', + 'ruff_lsp', + 'taplo', + 'yamlls', }) lsp.preset({ name = "recommended", set_lsp_keymaps = false }) lsp.on_attach(function(client, bufnr) diff --git a/nvim/.config/nvim/lua/plug/_toggleterm.lua b/nvim/.config/nvim/lua/plug/_toggleterm.lua index 0940b82..83694d8 100644 --- a/nvim/.config/nvim/lua/plug/_toggleterm.lua +++ b/nvim/.config/nvim/lua/plug/_toggleterm.lua @@ -9,10 +9,8 @@ local lazygit = Terminal:new({ cmd = "lazygit", hidden = true, direction = 'float', - float_opts = {border = "curved"} + float_opts = { border = "curved" } }) function _Lazygit_toggle() lazygit:toggle() end -vim.cmd([[command! Lazygit :lua _Lazygit_toggle()]]) --- vim.api.nvim_set_keymap("n", "g", "lua _lazygit_toggle()", --- {noremap = true, silent = true}) +vim.cmd([[command! Lazygit :lua _Lazygit_toggle()]])