diff options
| author | Thomas Schmucker <ts@its1.de> | 2025-12-22 17:28:43 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2025-12-22 17:28:43 +0100 |
| commit | 6f6457b7397247a34e25d4d9bfca434d8306283e (patch) | |
| tree | 2b9d9ab2580d7fe5d6f2be31eb34c1899b7ffcd8 /nvim/completion.lua | |
| parent | d662ef8d258234b6602cae1b1d9060f71d29e9c1 (diff) | |
| download | dotfiles-6f6457b7397247a34e25d4d9bfca434d8306283e.tar.gz dotfiles-6f6457b7397247a34e25d4d9bfca434d8306283e.tar.bz2 dotfiles-6f6457b7397247a34e25d4d9bfca434d8306283e.zip | |
Backup: Alte Neovim-Konfiguration
Diffstat (limited to 'nvim/completion.lua')
| -rw-r--r-- | nvim/completion.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/nvim/completion.lua b/nvim/completion.lua deleted file mode 100644 index 747607e..0000000 --- a/nvim/completion.lua +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | vim.api.nvim_create_autocmd("LspAttach", { | ||
| 2 | callback = function(ev) | ||
| 3 | local client = vim.lsp.get_client_by_id(ev.data.client_id) | ||
| 4 | -- if client and client:supports_method("textDocument/completion") then | ||
| 5 | -- vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true }) | ||
| 6 | -- end | ||
| 7 | |||
| 8 | if client and not client:supports_method('textDocument/willSaveWaitUntil') and | ||
| 9 | client:supports_method('textDocument/formatting') then | ||
| 10 | vim.api.nvim_create_autocmd('BufWritePre', { | ||
| 11 | group = vim.api.nvim_create_augroup('my.lsp', { clear = false }), | ||
| 12 | buffer = ev.buf, | ||
| 13 | callback = function() | ||
| 14 | vim.lsp.buf.format({ bufnr = ev.buf, id = client.id, timeout_ms = 1000 }) | ||
| 15 | end, | ||
| 16 | }) | ||
| 17 | end | ||
| 18 | end, | ||
| 19 | }) | ||
| 20 | |||
| 21 | vim.o.winborder = 'rounded' | ||
