-
Notifications
You must be signed in to change notification settings - Fork 0
/
selene.toml
40 lines (32 loc) · 1.18 KB
/
selene.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Selene configuration for AnoNvim
# Reference: https://kampfkarren.github.io/selene/usage/configuration.html
# Use Vim standard library
std = "vim"
# General configuration
[config]
# Lua version to target
lua_version = "5.1" # Neovim uses LuaJIT which is compatible with Lua 5.1
# Rule configurations
[rules]
# Allow using global variables (needed for Neovim API)
global_usage = "allow"
# Allow multiple statements on one line (for compact code)
multiple_statements = "allow"
# Allow non-standard library usage (needed for Neovim API)
incorrect_standard_library_use = "allow"
# Allow mixed table types (common in Neovim configs)
mixed_table = "allow"
# Additional rules for better code quality
empty_if = "warn" # Warn about empty if statements
shadowing = "warn" # Warn about shadowing variables
undefined_variable = "warn" # Warn about undefined variables
unused_variable = "warn" # Warn about unused variables
# Specific to Neovim development
# [vim]
# Define additional Neovim-specific globals
# globals = [
# "vim", # Neovim API
# "assert", # Lua assert function
# "after", # Module namespace
# "avim", # AnoNvim namespace
# ]