From 55bbe5ed195425930c4fe4942a33e08356092e0d Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sun, 12 Oct 2025 14:59:07 +0200 Subject: nvim: virtual lines of --- nvim/completion.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nvim/completion.lua') diff --git a/nvim/completion.lua b/nvim/completion.lua index d477367..4b7f335 100644 --- a/nvim/completion.lua +++ b/nvim/completion.lua @@ -5,9 +5,10 @@ vim.api.nvim_create_autocmd("LspAttach", { vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true }) end - if client and not client:supports_method('textDocument/willSaveWaitUntil') and client:supports_method('textDocument/formatting') then + if client and not client:supports_method('textDocument/willSaveWaitUntil') and + client:supports_method('textDocument/formatting') then vim.api.nvim_create_autocmd('BufWritePre', { - group = vim.api.nvim_create_augroup('my.lsp', {clear=false}), + group = vim.api.nvim_create_augroup('my.lsp', { clear = false }), buffer = ev.buf, callback = function() vim.lsp.buf.format({ bufnr = ev.buf, id = client.id, timeout_ms = 1000 }) @@ -18,4 +19,3 @@ vim.api.nvim_create_autocmd("LspAttach", { }) vim.o.winborder = 'rounded' - -- cgit v1.3