diff --git a/lua/config/utils.lua b/lua/config/utils.lua index 906df72..84ac0f0 100644 --- a/lua/config/utils.lua +++ b/lua/config/utils.lua @@ -5,32 +5,6 @@ M.has_words_before = function() return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match '%s' == nil end ---[=[ function M.on_attach(client, bufnr) - --[[ vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') ]] - if client.name == 'jdt.ls' then - client.server_capabilities.documentFormattingProvider = false - vim.lsp.codelens.refresh() - if JAVA_DAP_ACTIVE then - require('jdtls').setup_dap { hotcodereplace = 'auto' } - require('jdtls.dap').setup_dap_main_class_configs() - end - end - local ft = vim.api.nvim_buf_get_option(bufnr, 'filetype') - local has_formatter = require('null-ls.sources').get_available(ft, 'NULL_LS_FORMATTING') > 0 - - local enable = false - if has_formatter and not client.name == 'clangd' then - enable = client.name == 'null-ls' - else - enable = not (client.name == 'null-ls') - end - - -- util.info(client.name .. " " .. (enable and "yes" or "no"), "format") - client.server_capabilities.documentFormattingProvider = enable - -- client.server_capabilities.semanticTokensProvider = false - client.server_capabilities.semanticTokensProvider = nil -end ]=] - M.lsp_config = { -- virtual_text = { -- prefix = '●', diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 01c992b..f0862a9 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -93,7 +93,6 @@ return { }, sources = { { name = 'nvim_lsp' }, - { name = 'neorg' }, { name = 'path' }, { name = 'snippy' }, { name = 'buffer' },