Skip to content

Commit

Permalink
Merge pull request #45 from itsbth/fix/lua-module-separator
Browse files Browse the repository at this point in the history
Use . as a separator when importing modules
  • Loading branch information
cannorin authored Dec 3, 2021
2 parents 0423743 + 05b71e8 commit b341da4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/ionide/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ function try_require(...)
end

local lspconfig_is_present = true
local util = try_require('lspconfig/util')
local util = try_require('lspconfig.util')
if util == nil then
lspconfig_is_present = false
util = require('ionide/util')
util = require('ionide.util')
end

local M = {}
Expand Down Expand Up @@ -63,7 +63,7 @@ end

local function delegate_to_lspconfig(config)
local lspconfig = require('lspconfig')
local configs = require('lspconfig/configs')
local configs = require('lspconfig.configs')
if not (configs['ionide']) then
configs['ionide'] = {
default_config = get_default_config(),
Expand Down

0 comments on commit b341da4

Please sign in to comment.