From 1cb0dab7ff14e48d88e16896e73899b1d1e0adde Mon Sep 17 00:00:00 2001 From: mace Date: Sat, 22 Nov 2025 10:30:22 +0100 Subject: [PATCH] remove autoformat on save --- init.lua | 2 +- lua/custom/lspconfig.lua | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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 = {