1
Fork 0

Move lspconfig from lua to nix

This commit is contained in:
prescientmoon 2024-03-09 16:57:38 +01:00
parent e4b7645102
commit e30d42e8f2
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
4 changed files with 137 additions and 77 deletions
modules/common

View file

@ -86,7 +86,7 @@ let
mkAttrName = s:
let
# These list *are* incomplete
forbiddenChars = lib.stringToCharacters "<>[]{}()'\".,:;\\/";
forbiddenChars = lib.stringToCharacters "<>[]{}()'\".,:;\\/*_";
keywords = [ "if" "then" "else" "do" "for" "local" "" ];
in
if lib.any (c: lib.hasInfix c s) forbiddenChars || lib.elem s keywords then