Skip to content

Commit

Permalink
Merge pull request #1 from janvhs/pr-pylsp
Browse files Browse the repository at this point in the history
Run eslint on python.js and fix formatting
  • Loading branch information
janvhs committed Dec 26, 2023
2 parents 490196b + 490590f commit 1149a40
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/langs/python/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,12 @@ export function setup({ document }) {
function createLSPClient({ code_view, file }) {
const uri = file.get_uri();

const lspc = new LSPClient(
[
"pylsp"
],
{
rootUri: file.get_parent().get_uri(),
uri,
languageId: "python3",
buffer: code_view.buffer,
},
);
const lspc = new LSPClient(["pylsp"], {
rootUri: file.get_parent().get_uri(),
uri,
languageId: "python3",
buffer: code_view.buffer,
});

lspc.connect("exit", () => {
console.debug("python language server exit");
Expand Down

0 comments on commit 1149a40

Please sign in to comment.