fix: update last of languages references to point to constants file

This commit is contained in:
Barrett Ruth 2025-09-15 18:08:45 -04:00
parent 5d630d9dac
commit c06a0d8a84
4 changed files with 7 additions and 7 deletions

View file

@ -10,7 +10,7 @@
---@field height integer
local M = {}
local languages = require("cp.languages")
local constants = require("cp.constants")
function M.clearcol()
vim.api.nvim_set_option_value("number", false, { scope = "local" })
@ -79,7 +79,7 @@ function M.restore_layout(state, tile_fn)
local source_file
if source_files ~= "" then
local files = vim.split(source_files, "\n")
local valid_extensions = vim.tbl_keys(languages.filetype_to_language)
local valid_extensions = vim.tbl_keys(constants.filetype_to_language)
for _, file in ipairs(files) do
local ext = vim.fn.fnamemodify(file, ":e")
if vim.tbl_contains(valid_extensions, ext) then