update conf (i forgot)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user