Skip to content

Commit

Permalink
chore: clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlbach committed Nov 26, 2021
1 parent 6c2fb86 commit 97da7ed
Show file tree
Hide file tree
Showing 127 changed files with 136 additions and 136 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ A minimal example for adding a new language server is shown below for `pyright`,

```lua
-- Only `configs` must be required, util is optional if you are using the root resolver functions, which is usually the case.
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
local configs = require 'lspconfig.configs'
local util = require 'lspconfig.util'

-- Having server name defined here is the convention, this is often times also the first entry in the `cmd` table.
local server_name = 'pyright'
Expand Down
2 changes: 1 addition & 1 deletion autoload/health/lspconfig.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function! health#lspconfig#check()
call health#report_start('Checking language server protocol configuration')
lua require 'lspconfig/health'.check()
lua require 'lspconfig.health'.check()
endfunction
2 changes: 1 addition & 1 deletion doc/lspconfig.txt
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ The three steps for adding and enabling a new server configuration are:
- define the configuration

>
local configs = require 'lspconfig/configs'
local configs = require 'lspconfig.configs'
-- Check if the config is already defined (useful when reloading this file)
if not lspconfig.foo_lsp then
Expand Down
6 changes: 3 additions & 3 deletions lua/lspconfig.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local configs = require 'lspconfig/configs'
local configs = require 'lspconfig.configs'

local M = {
util = require 'lspconfig/util',
util = require 'lspconfig.util',
}

M._root = {}
Expand All @@ -16,7 +16,7 @@ function M._root._setup()
M._root.commands = {
LspInfo = {
function()
require 'lspconfig/ui/lspinfo'()
require 'lspconfig.ui.lspinfo'()
end,
'-nargs=0',
description = '`:LspInfo` Displays attached, active, and configured language servers',
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/configs.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'
local api, validate, lsp = vim.api, vim.validate, vim.lsp
local tbl_extend = vim.tbl_extend

Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/health.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local M = {}
function M.check()
local configs = require 'lspconfig/configs'
local configs = require 'lspconfig.configs'

if not configs or vim.tbl_count(configs) == 0 then
vim.fn['health#report_warn'] [[Can't find any config.]]
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/als.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'
local bin_name = 'ada_language_server'

if vim.fn.has 'win32' == 1 then
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/angularls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

-- Angular requires a node_modules directory to probe for @angular/language-service and typescript
-- in order to use your projects configured versions.
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/ansiblels.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/bashls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/beancount.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/bicep.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/bsl_ls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/ccls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/clangd.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

-- https://clangd.llvm.org/extensions.html#switch-between-sourceheader
local function switch_source_header(bufnr)
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/clojure_lsp.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/cmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/codeqlls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/crystalline.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/csharp_ls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/cssls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

local bin_name = 'vscode-css-language-server'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/dartls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

local bin_name = 'dart'

Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/denols.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'
local lsp = vim.lsp

local function deno_uri_to_uri(uri)
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/dhall_lsp_server.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/diagnosticls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

local bin_name = 'diagnostic-languageserver'
if vim.fn.has 'win32' == 1 then
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/dockerls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/dotls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/efm.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/elixirls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/elmls.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'
local lsp = vim.lsp
local api = vim.api

Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/ember.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local util = require 'lspconfig/util'
local util = require 'lspconfig.util'

return {
default_config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/emmet_ls.lua