Add missed files
This commit is contained in:
parent
f6c0c86580
commit
8235bc93b0
2
after/plugin/nvim-metals.vim
Normal file
2
after/plugin/nvim-metals.vim
Normal 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
1
ftdetect/hocon.vim
Normal file
|
@ -0,0 +1 @@
|
|||
au! BufNewFile,BufRead .scalafmt.conf set ft=hocon syntax=hocon
|
25
lua/conf/cmp.lua
Normal file
25
lua/conf/cmp.lua
Normal 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)
|
Loading…
Reference in a new issue