diff --git a/init.lua b/init.lua index 60dffee..4876e7f 100644 --- a/init.lua +++ b/init.lua @@ -197,7 +197,7 @@ require('lazy').setup({ -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- These are some example plugins that I've included in the kickstart repository. -- Uncomment any of the lines below to enable them. - require 'kickstart.plugins.autoformat', + -- require 'kickstart.plugins.autoformat', require 'kickstart.plugins.debug', require 'kickstart.plugins.filetree', diff --git a/lua/custom/lspconfig.lua b/lua/custom/lspconfig.lua index a74f3bf..998e722 100644 --- a/lua/custom/lspconfig.lua +++ b/lua/custom/lspconfig.lua @@ -177,6 +177,14 @@ elseif vim.loop.fs_stat(phpcs_config) then vim.g.nvim_phpcs_config_phpcs_standard = phpcs_config end +vim.lsp.config("lua_ls", { + settings = { + Lua = { + diagnostics = { + globals = { "vim" } } + } + } +}) -- === ENABLE: tell Neovim to autostart these configs lazily (filetype + root_dir) -- call this early in your init (so FileType autocommands are installed before opening files) local enabled_servers = {