From 34297d3e1a856a5ecf8ce53d3a4043388021569c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 22 Apr 2024 21:27:53 +0200 Subject: [PATCH] editor config: prevent tailwindcss LSP from starting in nvim [ci skip] --- .gitattributes | 2 +- .nvim.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .nvim.lua diff --git a/.gitattributes b/.gitattributes index 13a38ca6..e0804500 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,9 +5,9 @@ /.github export-ignore /.gitattributes export-ignore /.gitignore export-ignore -/.styleci.yml export-ignore /.editorconfig export-ignore /.coverage.xml export-ignore +/.nvim.lua export-ignore /art export-ignore /coverage export-ignore /CONTRIBUTING.md export-ignore diff --git a/.nvim.lua b/.nvim.lua new file mode 100644 index 00000000..c9b5d9cb --- /dev/null +++ b/.nvim.lua @@ -0,0 +1,4 @@ +-- The tailwindcss LSP doesn't play nice with testbench due to the recursive +-- `vendor` symlink in `testbench-core/laravel/vendor`, so we nuke its setup method here. +-- This prevents the setup() call in neovim config from starting the client (or doing anything at all). +require('lspconfig').tailwindcss.setup = function () end