aboutsummaryrefslogtreecommitdiff
path: root/nvim/completion.lua
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2025-10-12 14:59:07 +0200
committerThomas Schmucker <ts@its1.de>2025-10-12 14:59:07 +0200
commit55bbe5ed195425930c4fe4942a33e08356092e0d (patch)
tree23e52a5980e0a5548cb0d0246d8d6b0fd10c4072 /nvim/completion.lua
parentec39ae146f9e8d7779f1c85fd7faef40c6153199 (diff)
downloaddotfiles-55bbe5ed195425930c4fe4942a33e08356092e0d.tar.gz
dotfiles-55bbe5ed195425930c4fe4942a33e08356092e0d.tar.bz2
dotfiles-55bbe5ed195425930c4fe4942a33e08356092e0d.zip
nvim: virtual lines of
Diffstat (limited to 'nvim/completion.lua')
-rw-r--r--nvim/completion.lua6
1 files changed, 3 insertions, 3 deletions
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", {
5 vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true }) 5 vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
6 end 6 end
7 7
8 if client and not client:supports_method('textDocument/willSaveWaitUntil') and client:supports_method('textDocument/formatting') then 8 if client and not client:supports_method('textDocument/willSaveWaitUntil') and
9 client:supports_method('textDocument/formatting') then
9 vim.api.nvim_create_autocmd('BufWritePre', { 10 vim.api.nvim_create_autocmd('BufWritePre', {
10 group = vim.api.nvim_create_augroup('my.lsp', {clear=false}), 11 group = vim.api.nvim_create_augroup('my.lsp', { clear = false }),
11 buffer = ev.buf, 12 buffer = ev.buf,
12 callback = function() 13 callback = function()
13 vim.lsp.buf.format({ bufnr = ev.buf, id = client.id, timeout_ms = 1000 }) 14 vim.lsp.buf.format({ bufnr = ev.buf, id = client.id, timeout_ms = 1000 })
@@ -18,4 +19,3 @@ vim.api.nvim_create_autocmd("LspAttach", {
18}) 19})
19 20
20vim.o.winborder = 'rounded' 21vim.o.winborder = 'rounded'
21