Skip to content

Commit

Permalink
chore: update how the thrid party libraries load
Browse files Browse the repository at this point in the history
  • Loading branch information
BBboy01 committed Nov 25, 2024
1 parent 59667b3 commit 2756423
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
9 changes: 7 additions & 2 deletions lua/plugins/coding.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
return {
{
'folke/lazydev.nvim',
ft = 'lua', -- only load on lua files
ft = 'lua',
cmd = 'LazyDev',
opts = {},
opts = {
library = {
{ path = '${3rd}/luv/library', words = { 'vim%.uv' } },
'${3rd}/busted/library',
},
},
},

{
Expand Down
10 changes: 0 additions & 10 deletions lua/plugins/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -213,23 +213,13 @@ return {
},
},
lua_ls = {
on_init = function(client)
if not vim.uv.fs_stat(client.workspace_folders[1].name .. '/lazy-lock.json') then
return
end
end,
settings = {
Lua = {
runtime = {
version = 'LuaJIT',
},
workspace = {
checkThirdParty = false,
library = {
vim.env.VIMRUNTIME,
'${3rd}/luv/library',
'${3rd}/busted/library',
},
},
format = {
enable = false,
Expand Down

0 comments on commit 2756423

Please sign in to comment.