@@ -33,7 +33,10 @@ return {
3333 extra_args = function ()
3434 local has_project_config = utils .root_has_file ({ " .selene.toml" , " selene.toml" })
3535 if has_project_config then return nil end
36- return { " --config" , vim .fn .stdpath (" config" ) .. " /config_files/.selene.toml" }
36+ return {
37+ " --config" ,
38+ vim .fs .joinath (vim .fn .stdpath (" config" ), " config_files" , " .selene.toml" ),
39+ }
3740 end ,
3841 }), -- Linter for Lua
3942 none_ls .builtins .diagnostics .sqlfluff .with ({
@@ -49,13 +52,17 @@ return {
4952 if has_project_config then return args end
5053 return vim .list_extend (args , {
5154 " --config" ,
52- vim .fn .stdpath (" config" ) .. " / config_files/ .sqlfluff" ,
55+ vim .fs . joinpath ( vim . fn .stdpath (" config" ), " config_files" , " .sqlfluff" ) ,
5356 })
5457 end ,
5558 }),
5659 none_ls .builtins .diagnostics .yamllint .with ({
5760 env = {
58- YAMLLINT_CONFIG_FILE = vim .fn .stdpath (" config" ) .. " /config_files/.yamllint.yaml" ,
61+ YAMLLINT_CONFIG_FILE = vim .fs .joinpath (
62+ vim .fn .stdpath (" config" ),
63+ " config_files" ,
64+ " .yamllint.yaml"
65+ ),
5966 },
6067 }),
6168 none_ls .builtins .diagnostics .zsh ,
@@ -92,13 +99,13 @@ return {
9299 " .stylelintrc.yml" ,
93100 " .stylelintrc.yaml" ,
94101 }) or require (" utils.helpers" ):check_json_key_exists (
95- vim .fn .getcwd () .. " / package.json" ,
102+ vim .fs . joinpath ( vim . fn .getcwd (), " package.json" ) ,
96103 " stylelint"
97104 )
98105 if has_project_config then return nil end
99106 return {
100107 " --config" ,
101- vim .fn .stdpath (" config" ) .. " / config_files/ .stylelintrc.json" ,
108+ vim .fs . joinpath ( vim . fn .stdpath (" config" ), " config_files" , " .stylelintrc.json" ) ,
102109 }
103110 end ,
104111 }),
@@ -115,7 +122,7 @@ return {
115122 if has_project_config then return nil end
116123 return {
117124 " --config-path" ,
118- vim .fn .stdpath (" config" ) .. " / config_files/ .stylua.toml" ,
125+ vim .fs . joinpath ( vim . fn .stdpath (" config" ), " config_files" , " .stylua.toml" ) ,
119126 }
120127 end ,
121128 }),
0 commit comments