update conf (i forgot)

This commit is contained in:
Matt Anderson
2026-11-04 14:56:45 -06:00
parent 71ae4c4a06
commit 539ef3b299
8 changed files with 31 additions and 6 deletions
+13 -1
View File
@@ -3,12 +3,15 @@ vim.api.nvim_create_autocmd('LspAttach', {
callback = function(ev)
local client = assert(vim.lsp.get_client_by_id(ev.data.client_id))
if client:supports_method('textDocument/completion') then
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = false })
end
end,
})
vim.filetype.add({
extension = {
jenkinsfile = "groovy",
},
pattern = {
["compose.*%.ya?ml"] = "yaml.docker-compose",
["docker%-compose.*%.ya?ml"] = "yaml.docker-compose",
@@ -120,6 +123,15 @@ vim.lsp.config('yamlls', {
})
vim.lsp.enable('yamlls')
vim.api.nvim_create_autocmd('LspAttach', {
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
callback = function(ev)
vim.keymap.set('n', '<space>f', function()
vim.lsp.buf.format { async = true }
end, opts)
end,
})
-- DAP Setup
-- require('dap-python').setup('~/venv/bin/python')
-- require('dap-go').setup()