already namespaced, will also move these to a dir called language

This commit is contained in:
Chris 2021-07-14 00:29:47 -04:00
parent 2d65ffcff2
commit f87e85a032
2 changed files with 4 additions and 6 deletions

View file

@ -1,4 +1,4 @@
require("lsp.python-ls").format() require("lsp.python").format()
require("lsp.python-ls").lint() require("lsp.python").lint()
require("lsp.python-ls").lsp() require("lsp.python").lsp()
require("lsp.python-ls").dap() require("lsp.python").dap()

View file

@ -23,7 +23,6 @@ M.lint = function()
end end
local python_arguments = {} local python_arguments = {}
-- TODO: replace with path argument
local flake8 = { local flake8 = {
LintCommand = "flake8 --ignore=E501 --stdin-display-name ${INPUT} -", LintCommand = "flake8 --ignore=E501 --stdin-display-name ${INPUT} -",
lintStdin = true, lintStdin = true,
@ -42,7 +41,6 @@ M.lint = function()
if not require("lv-utils").check_lsp_client_active "efm" then if not require("lv-utils").check_lsp_client_active "efm" then
require("lspconfig").efm.setup { require("lspconfig").efm.setup {
-- init_options = {initializationOptions},
cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" }, cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" },
init_options = { documentFormatting = true, codeAction = false }, init_options = { documentFormatting = true, codeAction = false },
root_dir = require("lspconfig").util.root_pattern(".git/", "requirements.txt"), root_dir = require("lspconfig").util.root_pattern(".git/", "requirements.txt"),