Add missed files

This commit is contained in:
Alexander Gehrke 2021-09-21 16:47:05 +02:00
parent f6c0c86580
commit 8235bc93b0
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,2 @@
":let g:metals_server_version = '0.10.6-M1+29-22f5a4b1-SNAPSHOT'
"let g:metals_server_version = '0.10.6-M1'

1
ftdetect/hocon.vim Normal file
View file

@ -0,0 +1 @@
au! BufNewFile,BufRead .scalafmt.conf set ft=hocon syntax=hocon

25
lua/conf/cmp.lua Normal file
View file

@ -0,0 +1,25 @@
local cmp = require'cmp'
cmp.setup({
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
mapping = {
['<C-y>'] = cmp.mapping.confirm({ select = true }),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
select = true,
}),
['<Tab>'] = cmp.mapping(cmp.mapping.select_next_item(), { 'i', 's' })
},
sources = {
{ name = 'nvim_lsp' },
{ name = 'buffer' },
{ name = 'path' },
}
})
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)