<commit_before>local lsp_config = require("lspconfig")
-- Needs to be lspconfig/configs not lspconfig.configs because of caching
-- Extending it will not work if it's a dot (.) because the source
-- uses slash (/) and therefore has a different table
local server_configs = require("lspconfig/configs")
local lsp_install = require("lspinstall")
local lsp_saga = require("lspsaga")
local lsp_kind = require("lspkind")
local lsp_signature = require("lsp_signature")
local null_ls = require("null-ls")
local lua_dev = require("lua-dev")
local rust_tools = require("rust-tools")
local compe = require("compe")
local trouble = require("trouble")
local lsp_utils = require("utils.lsp")
local lsp_mappings = require("mappings.lsp")

local M = {}
local LANGS = {
  "html",
  "css",
  "json",
  "yaml",
  "bash",
  "cmake",
  "lua",
  "typescript",
  "latex",
  "dockerfile",
}

-- LSP Configs that are not in nimv-lspconfig
local additional_configs = {
  ccls = {
    init_options = {
      cache = {
        directory = "/tmp/ccls"
      },
    }
  },
  pylsp = {
    settings = {
      pylsp = {
        plugins = {
          -- Use flake8 for code style instead of pycodestyle
          flake8 = {
            enabled = true,
          },
          pycodestyle = {
            enabled = false,
          },
          -- Disable yapf, because black is used for formatting.
          yapf = {
            enabled = false,
          },
          -- Disable cyclomatic complexity analysis
          mccabe = {
            enabled = false,
          },
        },
      },<commit_msg>Fix formatting of ccls config<commit_after>local lsp_config = require("lspconfig")
-- Needs to be lspconfig/configs not lspconfig.configs because of caching
-- Extending it will not work if it's a dot (.) because the source
-- uses slash (/) and therefore has a different table
local server_configs = require("lspconfig/configs")
local lsp_install = require("lspinstall")
local lsp_saga = require("lspsaga")
local lsp_kind = require("lspkind")
local lsp_signature = require("lsp_signature")
local null_ls = require("null-ls")
local lua_dev = require("lua-dev")
local rust_tools = require("rust-tools")
local compe = require("compe")
local trouble = require("trouble")
local lsp_utils = require("utils.lsp")
local lsp_mappings = require("mappings.lsp")

local M = {}
local LANGS = {
  "html",
  "css",
  "json",
  "yaml",
  "bash",
  "cmake",
  "lua",
  "typescript",
  "latex",
  "dockerfile",
}

-- LSP Configs that are not in nimv-lspconfig
local additional_configs = {
  ccls = {
    init_options = {
      cache = {
        directory = "/tmp/ccls",
      },
    },
  },
  pylsp = {
    settings = {
      pylsp = {
        plugins = {
          -- Use flake8 for code style instead of pycodestyle
          flake8 = {
            enabled = true,
          },
          pycodestyle = {
            enabled = false,
          },
          -- Disable yapf, because black is used for formatting.
          yapf = {
            enabled = false,
          },
          -- Disable cyclomatic complexity analysis
          mccabe = {
            enabled = false,
          },
        },
      },
{'fraction_non_alphanumeric': 0.12073324905183312, 'fraction_numerical': 0.0012642225031605564, 'mean_word_length': 2.3492063492063493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1983137', 'n_tokens_mistral': 1009, 'n_tokens_neox': 987, 'n_words': 268}