aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/tailwindcss.lua
diff options
context:
space:
mode:
authorJerko Steiner <jerko.steiner@gmail.com>2024-02-02 12:36:20 +0100
committerGitHub <noreply@github.com>2024-02-02 19:36:20 +0800
commit9a6279953c82d01b58825a46ede032ab246a5983 (patch)
tree3c15386562a13d5c9d631d3e3df4fea2e6a27030 /lua/lspconfig/server_configurations/tailwindcss.lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-9a6279953c82d01b58825a46ede032ab246a5983.tar
nvim-lspconfig-9a6279953c82d01b58825a46ede032ab246a5983.tar.gz
nvim-lspconfig-9a6279953c82d01b58825a46ede032ab246a5983.tar.bz2
nvim-lspconfig-9a6279953c82d01b58825a46ede032ab246a5983.tar.lz
nvim-lspconfig-9a6279953c82d01b58825a46ede032ab246a5983.tar.xz
nvim-lspconfig-9a6279953c82d01b58825a46ede032ab246a5983.tar.zst
nvim-lspconfig-9a6279953c82d01b58825a46ede032ab246a5983.zip
fix(rust-analyzer): re-analyzing cargo deps (#2995)
I'm not that well versed in Lua, but the previous check if fname:sub(1, #item) == item didn't really work as expected and I was still experiencing high CPU usage when using the `go to definition` functionality. After adding some print statements for debugging, I noticed that only a few strings were removed from the base dir and thus the comparison was failing. Perhaps it might work differently in other operating systems, but my Linux machine it did not work correctly. I replaced this check with `util.path.is_descendant` which now works correctly, as well as added another path to check when git repositories are used as cargo dependencies.
Diffstat (limited to 'lua/lspconfig/server_configurations/tailwindcss.lua')
0 files changed, 0 insertions, 0 deletions