Extract neovim from prebuilt archives for debian hosts

This commit is contained in:
Sonny Bakker 2024-08-10 16:08:06 +02:00
parent b53e644f7e
commit deec1581c5
4 changed files with 126 additions and 22 deletions

View file

@ -23,8 +23,15 @@ end
--enable some language servers with the additional completion capabilities
--offered by nvim-cmp
-- TODO: use `.join`?
local servers = {
'ansiblels', 'yamlls', 'cssls', 'jsonls', 'tsserver', 'bashls', 'lua_ls'
{% for item in language_servers %}
{% if item.auto_setup and not loop.last %}
'{{ item.server_name }}',
{% elif item.auto_setup %}
'{{ item.server_name }}'
{% endif %}
{% endfor %}
}
--add additional capabilities supported by nvim-cmp
@ -42,6 +49,7 @@ end
local util = require('lspconfig/util')
{% if ansible_facts.os_family == 'Archlinux' %}
local python_root_dir = function(fname)
return util.root_pattern('.git', 'setup.cfg', 'requirements')(fname) or
util.path.dirname(fname)
@ -72,12 +80,14 @@ nvim_lsp.pyright.setup({
root_dir = python_root_dir
})
nvim_lsp.html.setup({
on_attach = on_attach,
capabilities = capabilities,
filetypes = { 'html', 'htmldjango' },
})
{% endif %}
local cmp = require('cmp')
local luasnip = require('luasnip')