mirror of https://gitlab.com/baco/dotconf.git
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:
parent
37da48aaf5
commit
b2a699cc02
|
@ -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
|
||||
|
|
|
@ -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") .. ";")
|
Loading…
Reference in New Issue