diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-01-06 09:50:21 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-01-06 09:50:21 +0100 |
| commit | 23cc6a0cc25544fa8b193ba2b38873dc1c3bdcc8 (patch) | |
| tree | 521d96762ecf6e8d8a98bf6a3140a9a46086cb6d /nvim_alt/completion.lua | |
| parent | 922518123990897e35ed1d94d0e6bd1314b7189e (diff) | |
| download | dotfiles-23cc6a0cc25544fa8b193ba2b38873dc1c3bdcc8.tar.gz dotfiles-23cc6a0cc25544fa8b193ba2b38873dc1c3bdcc8.tar.bz2 dotfiles-23cc6a0cc25544fa8b193ba2b38873dc1c3bdcc8.zip | |
Alte Neovim- und Tmuxp-Konfigurationen entfernt
Diffstat (limited to 'nvim_alt/completion.lua')
| -rw-r--r-- | nvim_alt/completion.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/nvim_alt/completion.lua b/nvim_alt/completion.lua deleted file mode 100644 index 747607e..0000000 --- a/nvim_alt/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' | ||
