re-organised config

This commit is contained in:
Fergus Molloy
2025-06-19 14:31:13 +01:00
parent 309b47ceb5
commit ec9a456c74
18 changed files with 91 additions and 183 deletions

15
lua/plugins/lsp/utils.lua Normal file
View File

@ -0,0 +1,15 @@
local M = {}
function M.check_ft(server, config)
if config.filetypes == nil or next(config.filetypes) == nil then
return true -- if no filetypes specified then enable
else
config.server = server
for _, ft in ipairs(config.filetypes) do
if vim.bo[0].filetype == ft then
return true
end
end
end
return false
end
return M