chore: usused

This commit is contained in:
fiplox 2023-08-10 13:32:32 +02:00
parent 9421c4a813
commit ee416a237b
2 changed files with 0 additions and 27 deletions

View File

@ -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 = '●',

View File

@ -93,7 +93,6 @@ return {
},
sources = {
{ name = 'nvim_lsp' },
{ name = 'neorg' },
{ name = 'path' },
{ name = 'snippy' },
{ name = 'buffer' },