Compare commits
No commits in common. "f012f26d282cd513e8c28b680dc5ffb27b2fcf0e" and "bf812d1e8892a4459ef65d1395f4c757fb4e539f" have entirely different histories.
f012f26d28
...
bf812d1e88
|
@ -894,39 +894,6 @@ cmp.setup.cmdline(':', {
|
||||||
|
|
||||||
-- nvim-cmp supports additional completion capabilities
|
-- nvim-cmp supports additional completion capabilities
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
|
|
||||||
-- NOTE: extend nvim-lspconfig locally for development
|
|
||||||
local function ensure_ungrammar_lspconfig()
|
|
||||||
local lspconfig = require('lspconfig')
|
|
||||||
local configs = require('lspconfig.configs')
|
|
||||||
|
|
||||||
if not configs['ungrammar_lsp'] then
|
|
||||||
configs['ungrammar_lsp'] = {
|
|
||||||
default_config = {
|
|
||||||
cmd = { "nix", "run", "git+https://git.pegasust.com/pegasust/zork?ref=ungrammar-lsp#ungrammar_lsp" },
|
|
||||||
filetypes = { "ungrammar", "ungram" },
|
|
||||||
root_dir = lspconfig.util.root_pattern(".git", ".ungram"),
|
|
||||||
settings = {
|
|
||||||
-- Your LSP-specific settings
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
ensure_ungrammar_lspconfig()
|
|
||||||
|
|
||||||
local function setup_ungrammar_handler()
|
|
||||||
-- NOTE: requires `lspconfig.configs.ungrammar_lsp.default_config` to exists
|
|
||||||
require('lspconfig').ungrammar_lsp.setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities,
|
|
||||||
settings = {
|
|
||||||
-- ungrammar lsp settings to be determined
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
-- local tabnine = require('cmp_tabnine.config')
|
-- local tabnine = require('cmp_tabnine.config')
|
||||||
-- tabnine.setup({
|
-- tabnine.setup({
|
||||||
-- max_lines = 1000,
|
-- max_lines = 1000,
|
||||||
|
@ -1022,13 +989,9 @@ local setup = {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
end,
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
setup_ungrammar_handler()
|
|
||||||
|
|
||||||
|
|
||||||
require('mason-lspconfig').setup_handlers({
|
require('mason-lspconfig').setup_handlers({
|
||||||
-- default handler
|
-- default handler
|
||||||
function(server_name)
|
function(server_name)
|
||||||
|
|
Loading…
Reference in New Issue