fix: imports

This commit is contained in:
Barrett Ruth 2025-09-18 20:12:01 -04:00
parent bc315818e4
commit a24d50843a
9 changed files with 32 additions and 8 deletions

View file

@ -1,3 +1,9 @@
root = true
[*]
insert_final_newline = true
charset = utf-8
[*.lua]
indent_style = space
indent_size = 2

3
.gitignore vendored
View file

@ -1,4 +1,7 @@
.venv/
doc/tags
*.log
build
debug
venv/
CLAUDE.md

View file

@ -1,11 +1,11 @@
local M = {}
local cache = require('cp.cache')
local config_module = require('cp.config')
local snippets = require('cp.snippets')
local scrape = require('cp.scrape')
local logger = require('cp.log')
local problem = require('cp.problem')
local cache = require('cp.cache')
local scrape = require('cp.scrape')
local snippets = require('cp.snippets')
if not vim.fn.has('nvim-0.10.0') then
vim.notify('[cp.nvim]: requires nvim-0.10.0+', vim.log.levels.ERROR)

View file

@ -10,8 +10,8 @@
---@field error? string
local M = {}
local logger = require('cp.log')
local cache = require('cp.cache')
local logger = require('cp.log')
local function get_plugin_path()
local plugin_path = debug.getinfo(1, 'S').source:sub(2)

View file

@ -21,8 +21,8 @@
---@field saved_layout table?
local M = {}
local logger = require('cp.log')
local constants = require('cp.constants')
local logger = require('cp.log')
---@type TestPanelState
local test_panel_state = {

View file

@ -1,3 +1 @@
std = "lua51+vim"
exclude = ["spec"]

View file

@ -4,3 +4,5 @@ indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferSingle"
call_parentheses = "Always"
[sort_requires]
enabled = true

View file

@ -1,6 +1,21 @@
[selene]
base = "lua52"
base = "lua51"
name = "vim"
[vim]
any = true
[jit]
any = true
[assert]
any = true
[describe]
any = true
[it]
any = true
[before_each.args]
any = true