diff --git a/lua/scl_lsp/init.lua b/lua/scl_lsp/init.lua index 45c413e..22cab3d 100644 --- a/lua/scl_lsp/init.lua +++ b/lua/scl_lsp/init.lua @@ -36,10 +36,6 @@ function M.setup(opts) if opts.lsp and opts.lsp.formatting then vim.api.nvim_buf_create_user_command(b, "SCLFormat", function() vim.lsp.buf.format({ name = "scl_lsp" }) - local ok, at = pcall(require, "scl.attr_toggle") - if ok then - at.clear_buffer_state(vim.api.nvim_get_current_buf()) - end end, {}) end end, @@ -57,10 +53,6 @@ function M.setup(opts) -- Create global format command (works on current buffer) vim.api.nvim_create_user_command("SCLFormat", function() vim.lsp.buf.format({ name = "scl_lsp" }) - local ok, at = pcall(require, "scl.attr_toggle") - if ok then - at.clear_buffer_state(vim.api.nvim_get_current_buf()) - end end, {}) -- Start LSP for any existing scl buffers (handles lazy loading case)