Skip to content

Commit

Permalink
format: auto sort requires
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 9, 2023
1 parent 650aa19 commit f72b9b2
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .stylua.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
column_width = 100
indent_type = "Spaces"
indent_width = 2
[sort_requires]
enabled = true
6 changes: 3 additions & 3 deletions lua/oil/adapters/ssh.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
local config = require("oil.config")
local constants = require("oil.constants")
local fs = require("oil.fs")
local files = require("oil.adapters.files")
local fs = require("oil.fs")
local loading = require("oil.loading")
local permissions = require("oil.adapters.files.permissions")
local sshfs = require("oil.adapters.ssh.sshfs")
local pathutil = require("oil.pathutil")
local permissions = require("oil.adapters.files.permissions")
local shell = require("oil.shell")
local sshfs = require("oil.adapters.ssh.sshfs")
local util = require("oil.util")
local M = {}

Expand Down
2 changes: 1 addition & 1 deletion lua/oil/adapters/ssh/sshfs.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local SSHConnection = require("oil.adapters.ssh.connection")
local cache = require("oil.cache")
local constants = require("oil.constants")
local permissions = require("oil.adapters.files.permissions")
local SSHConnection = require("oil.adapters.ssh.connection")
local util = require("oil.util")

---@class (exact) oil.sshFs
Expand Down
4 changes: 2 additions & 2 deletions lua/oil/mutator/init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
local Progress = require("oil.mutator.progress")
local Trie = require("oil.mutator.trie")
local cache = require("oil.cache")
local columns = require("oil.columns")
local config = require("oil.config")
Expand All @@ -7,8 +9,6 @@ local oil = require("oil")
local parser = require("oil.mutator.parser")
local pathutil = require("oil.pathutil")
local preview = require("oil.mutator.preview")
local Progress = require("oil.mutator.progress")
local Trie = require("oil.mutator.trie")
local util = require("oil.util")
local view = require("oil.view")
local M = {}
Expand Down
2 changes: 1 addition & 1 deletion lua/oil/mutator/progress.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local config = require("oil.config")
local columns = require("oil.columns")
local config = require("oil.config")
local layout = require("oil.layout")
local loading = require("oil.loading")
local util = require("oil.util")
Expand Down
2 changes: 1 addition & 1 deletion tests/altbuf_spec.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require("plenary.async").tests.add_to_env()
local fs = require("oil.fs")
local oil = require("oil")
local test_util = require("tests.test_util")
local fs = require("oil.fs")

a.describe("Alternate buffer", function()
after_each(function()
Expand Down
2 changes: 1 addition & 1 deletion tests/files_spec.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require("plenary.async").tests.add_to_env()
local TmpDir = require("tests.tmpdir")
local files = require("oil.adapters.files")
local test_util = require("tests.test_util")
local TmpDir = require("tests.tmpdir")

a.describe("files adapter", function()
local tmpdir
Expand Down
2 changes: 1 addition & 1 deletion tests/regression_spec.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require("plenary.async").tests.add_to_env()
local TmpDir = require("tests.tmpdir")
local oil = require("oil")
local test_util = require("tests.test_util")
local TmpDir = require("tests.tmpdir")
local view = require("oil.view")

a.describe("regression tests", function()
Expand Down

0 comments on commit f72b9b2

Please sign in to comment.