feat(LSP): Move all server settings file into same directory

Group all the files corresponding to servers' specific settings, to the
same directory.
This commit is contained in:
Dionisio E Alonso 2024-01-06 17:34:43 -03:00
parent 37da48aaf5
commit b2a699cc02
5 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
local opts = {}
opts.pylsp = require("python_lsp_server_settings")
opts.hls = require("haskell_lsp_server_settings")
opts.fortls = require("fortran_lsp_server_options")
opts.pylsp = require("lsp.server_settings.pylsp")
opts.hls = require("lsp.server_settings.hls")
opts.fortls = require("lsp.server_settings.fortls")
local workspace_conf_file = vim.fn.findfile(".nvim/lsp-server-conf.lua", ".;")
if workspace_conf_file ~= "" then

View File

@ -1,5 +1,5 @@
local pylsp_settings = {
configurationSources = {"flake8", "pycodestyle"}, -- config files to read from, not plugins enabled
configurationSources = { "flake8", "pycodestyle" }, -- config files to read from, not plugins enabled
plugins = {
flake8 = {
enabled = true,
@ -12,13 +12,13 @@ local pylsp_settings = {
"--max-line-length=79",
"--disable=missing-docstring,invalid-name,redefined-outer-name,logging-format-interpolation",
"--disable=line-too-long,trailing-whitespace,trailing-newlines", -- Checked by flake8
}
},
},
pylsp_mypy = {enabled = true},
pycodestyle = {enabled = false}, -- covered in flake8
pyflakes = {enabled = false}, -- covered in flake8
-- mccabe = {enabled = false}, -- not covered in flake8 by default; PyLSP doesn't handle the option
}
pylsp_mypy = { enabled = true },
pycodestyle = { enabled = false }, -- covered in flake8
pyflakes = { enabled = false }, -- covered in flake8
-- mccabe = { enabled = false }, -- not covered in flake8 by default; PyLSP doesn't handle the option
},
}
local venv_dir = vim.fn.finddir(".venv/", vim.fn.expand("%:p:h") .. ";")